Bottom Navigation
This commit is contained in:
@@ -12,6 +12,7 @@ class SplashPage extends StatefulWidget {
|
|||||||
|
|
||||||
class _SplashPageState extends State<SplashPage> {
|
class _SplashPageState extends State<SplashPage> {
|
||||||
late final Future<bool> loginFuture;
|
late final Future<bool> loginFuture;
|
||||||
|
int currentPageIndex = 0;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@@ -50,14 +51,29 @@ class _SplashPageState extends State<SplashPage> {
|
|||||||
bottomNavigationBar: BottomNavigationBar(
|
bottomNavigationBar: BottomNavigationBar(
|
||||||
items: const <BottomNavigationBarItem>[
|
items: const <BottomNavigationBarItem>[
|
||||||
BottomNavigationBarItem(
|
BottomNavigationBarItem(
|
||||||
icon: Icon(Icons.settings),
|
icon: Icon(
|
||||||
label: 'Settings',
|
Icons.home,
|
||||||
),
|
color: Colors.white,
|
||||||
BottomNavigationBarItem(
|
),
|
||||||
icon: Icon(Icons.home),
|
|
||||||
label: 'Home',
|
label: 'Home',
|
||||||
),
|
),
|
||||||
|
BottomNavigationBarItem(
|
||||||
|
icon: Icon(
|
||||||
|
Icons.add_rounded,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
label: 'Add',
|
||||||
|
),
|
||||||
|
BottomNavigationBarItem(
|
||||||
|
icon: Icon(
|
||||||
|
Icons.auto_awesome_rounded,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
label: 'Events',
|
||||||
|
),
|
||||||
],
|
],
|
||||||
|
currentIndex: currentPageIndex,
|
||||||
|
onTap: (index) => setState(() => currentPageIndex = index),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user