flutter navigation dot bar
a library of flutter to add a new style in the navigation bar.
a flutter library, which adds a bottomnavigationbar with a better style. inspired by the application “reflectly”
how to use
add the dependency to your project by editing the pubspec.yaml file.
dependencies:
navigation_dot_bar: ^0.1.3
import the library into your project:
import 'package:navigation_dot_bar/navigation_dot_bar.dart';
use it easily with bottomnavigationdotbar:
scaffold(
appbar: appbar( title: text("demo bottom navigation bar")),
body: container(),
bottomnavigationbar: bottomnavigationdotbar ( // usar -> "bottomnavigationdotbar"
items: <bottomnavigationdotbaritem>[
bottomnavigationdotbaritem(icon: icons.map, ontap: () { /* cualquier funcion - [abrir nueva venta] */ }),
bottomnavigationdotbaritem(icon: icons.alarm_add, ontap: () { /* cualquier funcion - [abrir nueva venta] */ }),
bottomnavigationdotbaritem(icon: icons.timer, ontap: () { /* cualquier funcion - [abrir nueva venta] */ }),
...
..
.
]
),
)
Comments are closed.