From 9c437f4f5c8a6c7c8a09a75c935c3305110949d1 Mon Sep 17 00:00:00 2001 From: Roberto Doering Date: Wed, 5 Aug 2020 21:19:50 +0200 Subject: [PATCH] Close drawer on navigation --- .../timeline/home_timeline/widgets/home_drawer.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/components/timeline/home_timeline/widgets/home_drawer.dart b/lib/components/timeline/home_timeline/widgets/home_drawer.dart index 10267d55e..5f54e7d23 100644 --- a/lib/components/timeline/home_timeline/widgets/home_drawer.dart +++ b/lib/components/timeline/home_timeline/widgets/home_drawer.dart @@ -24,9 +24,12 @@ class HomeDrawer extends StatelessWidget { ListTile( leading: const Icon(Icons.face), title: const Text('Profile'), - onTap: () => app().pushUserProfile( - user: authBloc.authenticatedUser, - ), + onTap: () async { + await app().state.maybePop(); + app().pushUserProfile( + user: authBloc.authenticatedUser, + ); + }, ), const Divider(),