spotlightnavbar 0.0.5 spotlightnavbar: ^0.0.5 copied to clipboard
A Flutter package for utilizing bottom navigation bar.
Spotlight Navigation Bar #
A responsive customized bottom navigation bar written in flutter and dart.
Credits to Sanchita Agrawal for inspiration! #
Show some ❤️ and star the repo to support the project. #
Demo : #
Usage #
To use this package :
- add the dependency to your pubspec.yaml
dependencies:
flutter:
sdk: flutter
spotlightnavbar:
How to use : #
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
bottomNavigationBar: SpotLightNavBar(
animationDuration: Duration(seconds: 1),
onItemPressed: (i) {
setState(() => index = i);
},
selectedItemColor: Colors.white,
bottomNavBarColor: Color(0xff3B3B3B),
nonSelectedItemColor: Colors.white30,
items: [
Icon(
Icons.grain,
),
Icon(
Icons.search,
),
Icon(
Icons.flag,
size: 20,
),
],
),
);