From 21096144a337d5a1dd08526c9ec05994e608142b Mon Sep 17 00:00:00 2001 From: tension Date: Wed, 28 Aug 2024 10:10:07 +0800 Subject: [PATCH] fix: Black screenn when press back button --- lib/features/common/nested_app_bar.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/features/common/nested_app_bar.dart b/lib/features/common/nested_app_bar.dart index 6848d181..194ba541 100644 --- a/lib/features/common/nested_app_bar.dart +++ b/lib/features/common/nested_app_bar.dart @@ -40,13 +40,7 @@ class NestedAppBar extends StatelessWidget { RootScaffold.stateKey.currentState?.openDrawer(); }, ) - : IconButton( - icon: Icon(context.isRtl ? Icons.arrow_forward : Icons.arrow_back), - padding: EdgeInsets.only(right: context.isRtl ? 50 : 0), - onPressed: () { - Navigator.of(context).pop(); // Pops the current route off the navigator stack - }, - ), + : null, title: title, actions: actions, pinned: pinned,