back button.
This commit is contained in:
parent
fe8632946c
commit
250a9716d0
@ -128,6 +128,16 @@ class _BaseScaffoldState extends State<BaseScaffold> {
|
|||||||
// icon: Icon(Icons.share),
|
// icon: Icon(Icons.share),
|
||||||
// ),
|
// ),
|
||||||
IconButton(onPressed: () {}, icon: Icon(Icons.toggle_off_outlined)),
|
IconButton(onPressed: () {}, icon: Icon(Icons.toggle_off_outlined)),
|
||||||
|
if (widget.showBackIcon)
|
||||||
|
Builder(
|
||||||
|
builder: (context) => IconButton(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
icon: const Icon(Icons.menu),
|
||||||
|
onPressed: () {
|
||||||
|
Scaffold.of(context).openDrawer(); // Opens the drawer
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
drawer: Drawer(
|
drawer: Drawer(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user