fix: Black screenn when press back button

This commit is contained in:
tension
2024-08-28 10:10:07 +08:00
parent b4e372c98c
commit 21096144a3

View File

@@ -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,