google_nav_bar
![]()
A modern google style nav bar for flutter.
![google_nav_bar]()
GoogleNavBar is a Flutter widget designed by Aurelien Salomon and developed by sooxt98.
Getting Started
Add this to your package's pubspec.yaml file:
...
dependencies:
google_nav_bar: ^5.0.7
Now in your Dart code, you can use:
import 'package:google_nav_bar/google_nav_bar.dart';
Usage
Style your tab globally with GNav's attribute, if you wish to style tab separately, use GButton's attribute
GNav(
rippleColor: Colors.grey[800],
hoverColor: Colors.grey[700],
haptic: true,
tabBorderRadius: 15,
tabActiveBorder: Border.all(color: Colors.black, width: 1),
tabBorder: Border.all(color: Colors.grey, width: 1),
tabShadow: [BoxShadow(color: Colors.grey.withOpacity(0.5), blurRadius: 8)],
curve: Curves.easeOutExpo,
duration: Duration(milliseconds: 900),
gap: 8,
color: Colors.grey[800],
activeColor: Colors.purple,
iconSize: 24,
tabBackgroundColor: Colors.purple.withOpacity(0.1),
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5),
tabs: [
GButton(
icon: LineIcons.home,
text: 'Home',
),
GButton(
icon: LineIcons.heart_o,
text: 'Likes',
),
GButton(
icon: LineIcons.search,
text: 'Search',
),
GButton(
icon: LineIcons.user,
text: 'Profile',
)
]
)
View the example folder
There are 4 different use case included in the /example directory, go try it out!