Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

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)

navigation bar

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 with the navigation bar

add the plugin:

dependencies:
  ...
  bottom_personalized_dot_bar: ^1.0.2

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

string _itemselected = 'item-1';
...
..
.
scaffold(
  body: stack(
    children: <widget>[
      .... // your app home
      bottompersonalizeddotbar(
          keyitemselected: _itemselected,
          donetext: 'done',
          settingtitletext: 'your menu',
          settingsubtitletext: 'drag and drop options',
          iconsettingcolor: const color(0xffffd201),
          buttondonecolor: const color(0xffffd500),
          settingsubtitlecolor: const color(0xfffece02),
          hiddenitems: <bottompersonalizeddotbaritem>[
              bottompersonalizeddotbaritem('item-4', icon: icons.cloud, name: 'nube', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-5', icon: icons.access_alarm, name: 'alarma', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-6', icon: icons.message, name: 'mensaje', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-7', icon: icons.notifications, name: 'alerta', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-8', icon: icons.security, name: 'seguridad', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-9', icon: icons.help, name: 'ayuda', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-10', icon: icons.settings, name: 'config.', ontap: (itemselected) { /* event selected */ }),
          ],
          items: <bottompersonalizeddotbaritem>[
              bottompersonalizeddotbaritem('item-1', icon: icons.sentiment_very_satisfied, name: 'flutter', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-2', icon: icons.favorite_border, name: 'favorito', ontap: (itemselected) { /* event selected */ }),
              bottompersonalizeddotbaritem('item-3', icon: icons.face, name: 'perfil', ontap: (itemselected) { /* event selected */ }),
          ],
      ),
    ],
  ),
);

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 */ }

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.