Navbar Anpassen #9
@@ -53,20 +53,12 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
|
|||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
body: tabs[currentIndex],
|
body: tabs[currentIndex],
|
||||||
extendBody: true,
|
extendBody: true,
|
||||||
|
flixcoo marked this conversation as resolved
Outdated
|
|||||||
floatingActionButton: FloatingActionButton(
|
|
||||||
shape: const CircleBorder(),
|
|
||||||
backgroundColor: CustomTheme.primaryColor,
|
|
||||||
onPressed: () {},
|
|
||||||
child: const Icon(Icons.add),
|
|
||||||
),
|
|
||||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
|
||||||
bottomNavigationBar: BottomAppBar(
|
bottomNavigationBar: BottomAppBar(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
elevation: 10,
|
elevation: 10,
|
||||||
height: 60,
|
height: 60,
|
||||||
color: CustomTheme.primaryColor,
|
color: CustomTheme.primaryColor,
|
||||||
shape: const CircularNotchedRectangle(),
|
shape: null,
|
||||||
notchMargin: 5,
|
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
@@ -85,7 +77,6 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
|
|||||||
),
|
),
|
||||||
onPressed: () => onTabTapped(1),
|
onPressed: () => onTabTapped(1),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 40),
|
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.groups,
|
Icons.groups,
|
||||||
|
flixcoo marked this conversation as resolved
Outdated
flixcoo
commented
Ich würde das Widget entweder Auslagern (als Ich würde das Widget entweder Auslagern (als `nav_item.dart` im `widgets` Ordner) oder das `Expanded` Widget direkt in die Row setzen (nicht so geil). Wenn du das Auslagerst sparst du dir ganz viel Code hier und übergibst die Parameter einfach direkt in das Widget.
gelbeinhalb
commented
Ja stimmt. Ja stimmt.
Ich lager das dann aus.
|
|||||||
|
|||||||
Reference in New Issue
Block a user
Chat GPT Kommentar entfernen
Hab ich extra reingemacht weil ich das so unlogisch fand. Also der Code erklärt sich nicht selber finde ich