fix(web): center unread badge on the menu icon, not the tap target
This commit is contained in:
parent
f10db611e8
commit
eb8c75cf44
1 changed files with 4 additions and 6 deletions
|
|
@ -27,15 +27,13 @@ class HomeScreen extends StatelessWidget {
|
|||
// Badge the hamburger so unread messages are visible from home, without
|
||||
// opening the drawer. Total count across conversations.
|
||||
leading: Builder(
|
||||
builder: (context) => UnreadBadge(
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.menu),
|
||||
builder: (context) => IconButton(
|
||||
icon: const UnreadBadge(child: Icon(Icons.menu)),
|
||||
tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
|
||||
onPressed: () => Scaffold.of(context).openDrawer(),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
drawer: AppDrawer(marketEnabled: marketEnabled),
|
||||
body: Stack(
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue