fix(web): center unread badge on the menu icon, not the tap target

This commit is contained in:
vjrj 2026-07-15 12:47:27 +02:00
parent 7f6c88039c
commit a7ec13f2f1

View file

@ -27,15 +27,13 @@ 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(),
), ),
), ),
), ),
),
drawer: AppDrawer(marketEnabled: marketEnabled), drawer: AppDrawer(marketEnabled: marketEnabled),
body: Stack( body: Stack(
children: [ children: [