ss_bottom_navbar
Flutter modern bottom nav bar. Compatible with Android & iOS. You can customize it freely.
Getting Started
Example
SSBottomNav
Usage
Create Items
Create the state
With bottom sheet dialog
Customization
Name | Type | Description |
---|---|---|
items |
List<SSBottomNavItem> |
list of SSBottomNavItem items |
state |
SSBottomBarState |
state of the bottome bar as ChangeNotifier |
iconSize |
double |
size of the icon on items |
backgroundColor |
Color |
background color of the widget |
color |
Color |
color of the slider |
selectedColor |
Color |
items's color when selected |
unselectedColor |
Color |
items's color when not selected |
onTabSelected |
ValueChanged<int> |
function that returns the index on tab selected |
shadow |
List<BoxShadow> |
shadow of the slider |
visible |
bool |
visibilty of the SSBottomNavItem |
bottomSheetWidget |
Widget |
child of the bottom sheet dialog |
showBottomSheetAt |
int |
the index of SSBottomNavItem to show the SSBottomNavItem |
bottomSheetHistory |
bool |
default true . option to go back previous tab if showBottomSheetAt pressed while SSBottomSheet showing |
dismissedByAnimation |
ValueChanged<bool> |
function that returns true if SSBottomSheet dismissed by animation |
SSBottomSheet
If you want to use SSBottomNav
's bottom sheet dialog, you can do that with SSBottomSheet
Usage
Dismiss the Bottom Sheet
Customization
Name | Type | Description |
---|---|---|
Widget |
child |
child widget |
backgroundColor |
Color |
background color of the widget |
bottomMargin |
double |
margin from bottom acording to your bottom navbars height |
onPressed |
ValueChanged<Offset> |
returns Offset when tapped |