Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.31 KB | None | 0 0
  1.   Widget _buildBottomNavBar() {
  2.     return Container(
  3.       height: 67,
  4.       margin: EdgeInsets.symmetric(horizontal: 10, vertical: 30),
  5.       child: Card(
  6.         margin: EdgeInsets.zero,
  7.         shape: RoundedRectangleBorder(
  8.             borderRadius: BorderRadius.all(Radius.circular(17))),
  9.         elevation: 10,
  10.         child: Container(
  11.           decoration: BoxDecoration(
  12.               gradient: theme.gradient,
  13.               borderRadius: BorderRadius.all(Radius.circular(17))),
  14.           child: BottomNavigationBar(
  15.             elevation: 0,
  16.             type: BottomNavigationBarType.fixed,
  17.             backgroundColor: Colors.transparent,
  18.             selectedItemColor: theme.maincolor,
  19.             currentIndex: _selectedTab,
  20.             iconSize: 26,
  21.             selectedLabelStyle: TextStyle(color: Colors.white),
  22.             onTap: _onItemTapped,
  23.             items: <BottomNavigationBarItem>[
  24.               _buildNavItem(OMIcons.book, Icons.book),
  25.               _buildNavItem(OMIcons.flag, Icons.flag),
  26.               _buildNavItem(OMIcons.event, Icons.event),
  27.               _buildNavItem(
  28.                   OMIcons.supervisedUserCircle, Icons.supervised_user_circle),
  29.               _buildNavItem(OMIcons.trendingUp, Icons.trending_up),
  30.             ],
  31.           ),
  32.         ),
  33.       ),
  34.     );
  35.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement