add home buttom
This commit is contained in:
parent
4a97592674
commit
61b7a72a05
1 changed files with 11 additions and 0 deletions
|
|
@ -26,6 +26,17 @@ class _MIHAppBarState extends State<MIHAppBar> {
|
||||||
return AppBar(
|
return AppBar(
|
||||||
elevation: 8,
|
elevation: 8,
|
||||||
shadowColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
shadowColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
|
actions: [
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(
|
||||||
|
Icons.home,
|
||||||
|
size: 40,
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.popAndPushNamed(context, '/home');
|
||||||
|
},
|
||||||
|
)
|
||||||
|
],
|
||||||
title: Text(
|
title: Text(
|
||||||
widget.barTitle,
|
widget.barTitle,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue