From 60783d6812a523d9dc06510cc89f100ea1621eda Mon Sep 17 00:00:00 2001 From: Emeline G Date: Thu, 6 Aug 2020 16:26:35 +0200 Subject: [PATCH] Add customize bottom navigation bar --- lib/widgets/bottom_app_bar.dart | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/widgets/bottom_app_bar.dart diff --git a/lib/widgets/bottom_app_bar.dart b/lib/widgets/bottom_app_bar.dart new file mode 100644 index 0000000..efc42ff --- /dev/null +++ b/lib/widgets/bottom_app_bar.dart @@ -0,0 +1,31 @@ +import 'package:flutter/material.dart'; + +class BottomAppBar extends StatefulWidget { + @override + _BottomAppBarState createState() => _BottomAppBarState(); +} + +class _BottomAppBarState extends State { + @override + Widget build(BuildContext context) { + return BottomNavigationBar( + items: const [ + 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], + + ); + } +}