add home buttom
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user