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
// 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: [