Skip to content

Commit

Permalink
feat: bottom navigation style
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Sep 14, 2019
1 parent 7056d51 commit 68c1be4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/main.dart
Expand Up @@ -64,6 +64,7 @@ class _HomeState extends State<Home> {
),
BottomNavigationBarItem(
icon: _buildNotificationIcon(context),
activeIcon: Icon(Icons.notifications),
title: Text('Notification'),
),
BottomNavigationBarItem(
Expand All @@ -76,6 +77,7 @@ class _HomeState extends State<Home> {
),
BottomNavigationBarItem(
icon: Icon(Icons.person_outline),
activeIcon: Icon(Icons.person),
title: Text('Me'),
),
];
Expand Down Expand Up @@ -153,6 +155,8 @@ class _HomeState extends State<Home> {
home: Scaffold(
body: _buildScreen(active),
bottomNavigationBar: BottomNavigationBar(
selectedItemColor: PrimerColors.blue500,
// unselectedItemColor: PrimerColors.gray500,
items: _buildNavigationItems(),
currentIndex: active,
type: BottomNavigationBarType.fixed,
Expand Down

0 comments on commit 68c1be4

Please sign in to comment.