Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget _buildBottomNavBar() {
- return Container(
- height: 67,
- margin: EdgeInsets.symmetric(horizontal: 10, vertical: 30),
- child: Card(
- margin: EdgeInsets.zero,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.all(Radius.circular(17))),
- elevation: 10,
- child: Container(
- decoration: BoxDecoration(
- gradient: theme.gradient,
- borderRadius: BorderRadius.all(Radius.circular(17))),
- child: BottomNavigationBar(
- elevation: 0,
- type: BottomNavigationBarType.fixed,
- backgroundColor: Colors.transparent,
- selectedItemColor: theme.maincolor,
- currentIndex: _selectedTab,
- iconSize: 26,
- selectedLabelStyle: TextStyle(color: Colors.white),
- onTap: _onItemTapped,
- items: <BottomNavigationBarItem>[
- _buildNavItem(OMIcons.book, Icons.book),
- _buildNavItem(OMIcons.flag, Icons.flag),
- _buildNavItem(OMIcons.event, Icons.event),
- _buildNavItem(
- OMIcons.supervisedUserCircle, Icons.supervised_user_circle),
- _buildNavItem(OMIcons.trendingUp, Icons.trending_up),
- ],
- ),
- ),
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement