Merge Fix

This commit is contained in:
Jonas Braus
2024-11-21 12:53:00 +01:00
parent ed5eebb515
commit 892b72187a
+23 -17
View File
@@ -111,37 +111,43 @@ class MyHome extends StatelessWidget {
),
],
),
body: Container(),
bottomNavigationBar: GNav(
onTabChange: (index) {},
body: Consumer<PageProvider>(
builder: (context, pageProvider, child) {
return pageProvider.pages[pageProvider.selectedPage];
},
),
bottomNavigationBar: Padding(
padding: EdgeInsets.all(5),
child: GNav(
onTabChange: (index) {
Provider.of<PageProvider>(context, listen: false).changePage(index);
},
gap: 8,
backgroundColor: Theme.of(context).colorScheme.secondary,
style: GnavStyle.google,
backgroundColor: Theme.of(context).colorScheme.surface,
color: Theme.of(context).colorScheme.onSurface,
activeColor: Theme.of(context).colorScheme.onPrimary,
tabBackgroundColor: Theme.of(context).colorScheme.primary,
tabs: const [
GButton(
icon: Icons.food_bank,
icon: Icons.fastfood_outlined,
text: "Essen",
),
GButton(
icon: Icons.room,
),GButton(
icon: Icons.landscape,
text: "Ambiente",
),
GButton(
icon: Icons.person,
),GButton(
icon: Icons.mood,
text: "Service",
),
GButton(
icon: Icons.question_mark,
),GButton(
icon: Icons.feedback,
text: "Verschläge",
),
GButton(
icon: Icons.add_rounded,
), GButton(
icon: Icons.comment,
text: "Verbesserungen",
),
],
),
),
);
}
}