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