Bottom Personalized Dot Bar
A bottom navigation bar that you can customize with the options you need, without any limits. You can also customize the appearance of the navigation bar.
Demo example (Mobile)
Demo example (Tablet 1)
Demo example (Tablet 2)
Package overview
- [x] Drag and Drop your options!
- [x] Change icon colors
- [x] Listen to events 'Sort, Insert and Delete'
- [x] Dynamically change the selected option
- [x] Custom options
- [x] Unlimit options
- [x] Option to define custom item background color
- [x] And more ...
Getting Started
Add the plugin:
Import the package
import 'package:bottom_personalized_dot_bar/bottom_personalized_dot_bar.dart';
How to use?
Important! dont use 'bottomNavigationBar' of Scaffold, because it occupies the entire screen, you need to add it inside a Stack.
To add the Options list, you must create
BottomPersonalizedDotBarItem
, and each must have the unique attribute 'keyItem'.
To modify the selected option, you must update the attribute
keyItemSelected
of the BottomPersonalizedDotBar
Customization
BottomPersonalizedDotBar
ATTRIBUTE | DESCRIPTION |
---|---|
items | List of items to be displayed in the navigation bar |
hiddenItems | List of items that will be hidden |
keyItemSelected | Item key that is selected |
width | Navigation bar width |
height | Navigation bar height |
borderRadius | Navigation bar radius |
selectedColorIcon | Selected Icon color |
unSelectedColorIcon | Unselected Icon color |
navigatorBackground | Navigator Container Background color |
settingBackground | Setting Container Background color (Hidden items) |
iconSetting | Settings button icon |
iconSettingColor | Settings button icon color |
settingTitleText | Setting Title Text |
settingTitleColor | Setting Title color |
settingSubTitleText | Setting Sub-Title Text |
settingSubTitleColor | Setting Sub-Title color |
doneText | Done button Text |
textDoneColor | Text Done Color |
buttonDoneColor | Button done color |
hiddenItemBackground | Background of hidden item |
iconHiddenColor | Icon Hidden Color |
textHiddenColor | Text Hidden Color |
dotColor | Selection Indicator Color (Dot |
boxShadow | Shadow of container |
onOrderHideItems | Event when you sort the hidden options, this has as parameter the list of hidden options with the new order. onOrderHideItems: (List<BottomPersonalizedDotBarItem> hiddenItems) { /* Your action */ } |
onOrderItems | Event when ordering browser options, this has as parameter the list of options with the new order onOrderItems: (List<BottomPersonalizedDotBarItem> items) { /* Your action */ } |
onAddItem | Event when you add a new option to the navigation bar, this has as parameters the item you add and the list of options. onAddItem: (BottomPersonalizedDotBarItem itemAdd, List<BottomPersonalizedDotBarItem> items) { /* Your action */ } |
onRemoveItem | Event when you delete an option from the navigation bar, this has as parameters the element to delete and the list of hidden options. onRemoveItem: (BottomPersonalizedDotBarItem itemRemove, List<BottomPersonalizedDotBarItem> hiddenItems) { /* Your action */ } |
BottomPersonalizedDotBarItem
ATTRIBUTE | DESCRIPTION |
---|---|
keyItem | Unique key |
icon | Item icon |
name | Item name |
onTap | Event with you press the item. onTap: (String keyItem) { /* Your action */ } |