Skip to content

Commit

Permalink
hide back icon when no back
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Sep 2, 2024
1 parent 4bef962 commit 5672082
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dependencies.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
core.version=2.1.5
core.version=2.3.0
18 changes: 9 additions & 9 deletions lib/features/common/nested_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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: () {
if (Navigator.of(context).canPop()){
Navigator.of(context).pop(); // Pops the current route off the navigator stack
}
},
),
: (Navigator.of(context).canPop()
? 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,
Expand Down
2 changes: 1 addition & 1 deletion libcore
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1933,10 +1933,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
watcher:
dependency: "direct main"
description:
Expand Down

0 comments on commit 5672082

Please sign in to comment.