dot_navigation_bar 0.0.1
dot_navigation_bar: ^0.0.1 copied to clipboard
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 with simple smooth animations, providing a nic [...]
Dot Navigation 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 with simple smooth animations, providing a nice and clean UX.
[style1] [preview]
Getting Started #
To install, add it to your pubspec.yaml file:
dependencies:
dot_navigation_bar:
import 'package:dot_navigation_bar/dot_navigation_bar.dart';
How to use it #
call DotNavigationBar's constructor:
Widget build(BuildContext context) {
return Scaffold(
body: Center(),
bottomNavigationBar: DotNavigationBar(
items: <DotNavigationBarIteam>[
],
)
);
}
basic implementation #
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: Image.asset("assets/IMG.png"),
),
bottomNavigationBar: DotNavigationBar(
items: <DotNavigationBarIteam>[
DotNavigationBarIteam(icon: LineAwesomeIcons.home, onTap: () {}),
DotNavigationBarIteam(icon: LineAwesomeIcons.safari, onTap: () {}),
DotNavigationBarIteam(icon: LineAwesomeIcons.briefcase, onTap: () {}),
DotNavigationBarIteam(icon: LineAwesomeIcons.user, onTap: () {}),
],
color: Colors.grey.withOpacity(0.5),
activeColor: Colors.green[200],
dotColor: Colors.green,
backgroundShadowColor: Colors.green[200],
),
);
}
The constructor has 17 attributes related to the API:
List<DotNavigationBarIteam> itemsColor activeColorIcons Active Color.Color dotColorThe Color of dot indicater.Color colorIcons Main Colors.double paddingLContainer Padding Left. Default value is1.double paddingTContainer Padding Top. Default value is1.double paddingRContainer Padding Right. Default value is1.double paddingBContainer Padding Bottom. Default value is1.double paddingVsymmetric vertical Padding of the Container. Default value is25.double topLeftContainer Top Left corner radius . Default value is10.double topRightContainer Top right corner radius . Default value is10.double bottomLeftContainer bottom Left corner radius . Default value is0.double bottomRightContainer bottom right corner radius . Default value is0.double materialElevationContainers elevationColor backgroundColorBackground color. Default value iswhite.Color backgroundShadowColorBackground shadow color . Default value isgrey.double bottomRightBackground shadow color . Default value isgrey.