add home buttom

This commit is contained in:
2024-08-23 12:51:00 +02:00
parent 4a97592674
commit 61b7a72a05

View File

@@ -26,6 +26,17 @@ class _MIHAppBarState extends State<MIHAppBar> {
return AppBar(
elevation: 8,
shadowColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
actions: [
IconButton(
icon: const Icon(
Icons.home,
size: 40,
),
onPressed: () {
Navigator.popAndPushNamed(context, '/home');
},
)
],
title: Text(
widget.barTitle,
),