fix: suppress all network errors during logout and clear snackbars before navigation

This commit is contained in:
pradeepkumar committed 2026-03-31 06:04:30 +05:30
1 parent 145cf53fdb
commit 597b97414d
2 files changed
+7 -5

No files matched your search

@@ -323,6 +323,7 @@ class _MenuDrawer extends ConsumerWidget {
child: ElevatedButton(
onPressed: () {
Navigator.pop(context);
ScaffoldMessenger.of(context).clearSnackBars();
ref.read(authProvider.notifier).logout();
},
style: ElevatedButton.styleFrom(