bottom_personalized_dot_bar 1.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 83

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.

The development was inspired by the following design: personalized-tab-bar

You can see the source code of this lib inside the /lib folder.

Show some ❤️ and star the repo to support this project #

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: #

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 #

AttributeDescription
itemsList of items to be displayed in the navigation bar
hiddenItemsList of items that will be hidden
keyItemSelectedItem key that is selected
widthNavigation bar width
heightNavigation bar height
borderRadiusNavigation bar radius
selectedColorIconSelected Icon color
unSelectedColorIconUnselected Icon color
navigatorBackgroundNavigator Container Background color
settingBackgroundSetting Container Background color (Hidden items)
iconSettingSettings button icon
iconSettingColorSettings button icon color
settingTitleTextSetting Title Text
settingTitleColorSetting Title color
settingSubTitleTextSetting Sub-Title Text
settingSubTitleColorSetting Sub-Title color
doneTextDone button Text
textDoneColorText Done Color
buttonDoneColorButton done color
hiddenItemBackgroundBackground of hidden item
iconHiddenColorIcon Hidden Color
textHiddenColorText Hidden Color
dotColorSelection Indicator Color (Dot
boxShadowShadow of container
onOrderHideItemsEvent 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 */ }
onOrderItemsEvent when ordering browser options, this has as parameter the list of options with the new order onOrderItems: (List<BottomPersonalizedDotBarItem> items) { /* Your action */ }
onAddItemEvent 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 */ }
onRemoveItemEvent 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 #

AttributeDescription
keyItemUnique key
iconItem icon
nameItem name
onTapEvent with you press the item. onTap: (String keyItem) { /* Your action */ }

[1.0.0] - Release

  • Bottom Personalized Dot Bar package.

[1.0.1] - Release

  • Add comments and update documentation.

[1.0.2] - Release

  • Solve problem with Height and format code

example/README.md

example #

A new Flutter application.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  bottom_personalized_dot_bar: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:bottom_personalized_dot_bar/bottom_personalized_dot_bar.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
66
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
83
Learn more about scoring.

We analyzed this package on Oct 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/bottom_personalized_dot_bar.dart.

Run flutter format to format lib/bottom_personalized_dot_bar.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
dotted_border ^1.0.2 1.0.3
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
path_drawing 0.4.1
path_parsing 0.1.4
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test