flutter_navbar_pro 0.0.1 flutter_navbar_pro: ^0.0.1 copied to clipboard
This is a amazing nav bar project. You can use this package in your amazing flutter project to make your project beautiful.
🌐 Socials: #
How to use? #
Add flutter_navbar_pro:
to your pubspec.yaml
dependencies then run flutter pub get
Add from pub [Stable]
dependencies:
flutter_navbar_pro:
Then import the package to use
import 'package:flutter_navbar_pro/flutter_navbar_pro.dart';
Add FlutterNavBarPro()
to bottomNavigationBar
property of Scaffold()
.
Design Overview #
I just inspired From This Bar (MyGp App)
Do and don't #
- Don't make icon size too big.
- Don't use label text too long
How to use it #
-
For Navigation Bar Code Example #
Past it inside scaffold
bottomNavigationBar: FlutterNavBarPro(
iconFirst: Icons.home,
labelFirst: 'Home',
iconSecond: Icons.local_offer_outlined,
labelSecond: 'Offers',
iconThree: Icons.person,
labelThree: 'Account',
iconFour: Icons.menu,
labelFour: 'More',
labelMiddle: 'Explore',
),
- Here we just typed our IconData. The package already done all modification for you.
So just type the IconData only. (eg: Icons.name)
- And for icon label you can't able to use any wiget under the under '' codeation you have to type your label text and the package already done all modification for you.
-
How to use the center icon? #
Past it inside scaffold
floatingActionButton: FloatingBarPro(
middleBGColor: Colors.white,
imageData: 'assets/images/explore.png',
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
Here in imageData you have a past your own image icon path.
-
How to change image to icon? . #
- Hold on the ctrl button and click on FlutterNavBarPro()
- And comment of delete 123-125 no line codes.
- and past one line of codes here
child: Icon(Icons.access_time_filled_rounded),
Here just change the IconData with yours