Add customize bottom navigation bar
This commit is contained in:
parent
8257eadee5
commit
60783d6812
31
lib/widgets/bottom_app_bar.dart
Normal file
31
lib/widgets/bottom_app_bar.dart
Normal file
@ -0,0 +1,31 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class BottomAppBar extends StatefulWidget {
|
||||
@override
|
||||
_BottomAppBarState createState() => _BottomAppBarState();
|
||||
}
|
||||
|
||||
class _BottomAppBarState extends State<BottomAppBar> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BottomNavigationBar(
|
||||
items: const <BottomNavigationBarItem>[
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.home),
|
||||
title: Text('Accueil'),
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.add),
|
||||
title: Text('Notes'),
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.business),
|
||||
title: Text('Enseignes'),
|
||||
),
|
||||
],
|
||||
|
||||
selectedItemColor: Colors.indigo[900],
|
||||
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user