hide back icon when no back
This commit is contained in:
@@ -1 +1 @@
|
|||||||
core.version=2.1.5
|
core.version=2.3.0
|
||||||
@@ -40,15 +40,15 @@ class NestedAppBar extends StatelessWidget {
|
|||||||
RootScaffold.stateKey.currentState?.openDrawer();
|
RootScaffold.stateKey.currentState?.openDrawer();
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
: IconButton(
|
: (Navigator.of(context).canPop()
|
||||||
icon: Icon(context.isRtl ? Icons.arrow_forward : Icons.arrow_back),
|
? IconButton(
|
||||||
padding: EdgeInsets.only(right: context.isRtl ? 50 : 0),
|
icon: Icon(context.isRtl ? Icons.arrow_forward : Icons.arrow_back),
|
||||||
onPressed: () {
|
padding: EdgeInsets.only(right: context.isRtl ? 50 : 0),
|
||||||
if (Navigator.of(context).canPop()){
|
onPressed: () {
|
||||||
Navigator.of(context).pop(); // Pops the current route off the navigator stack
|
Navigator.of(context).pop(); // Pops the current route off the navigator stack
|
||||||
}
|
},
|
||||||
},
|
)
|
||||||
),
|
: null),
|
||||||
title: title,
|
title: title,
|
||||||
actions: actions,
|
actions: actions,
|
||||||
pinned: pinned,
|
pinned: pinned,
|
||||||
|
|||||||
2
libcore
2
libcore
Submodule libcore updated: 3874832ccf...a4caf23ee6
@@ -1933,10 +1933,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vm_service
|
name: vm_service
|
||||||
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
|
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "14.2.4"
|
version: "14.2.5"
|
||||||
watcher:
|
watcher:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user