A beautiful navigation bar with animation when select item.

Table of contents
đĨ Installing
Add Dependency
dependencies:
stage_navigation_bar: ^0.0.1 #latest version
Import Package
import 'package:stage_navigation_bar/stage_navigation_bar.dart';
âšī¸ How To Use
Place your StageNavigationBar to the bottomNavigationBar slot of a Scaffold. Or in the bottom
of your main page view.
âī¸ It works with 2 or more navigation items.
Code
class StageNavigationBarExample extends StatefulWidget {
const StageNavigationBarExample({super.key});
@override
State<StageNavigationBarExample> createState() =>
_StageNavigationBarExampleState();
}
class _StageNavigationBarExampleState extends State<StageNavigationBarExample> {
/// Your initial page
int _selectedIndex = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
bottomNavigationBar: StageNavigationBar(
items: const [
Icon(Icons.home_filled, color: Colors.white),
Icon(Icons.favorite, color: Colors.white),
Icon(Icons.search, color: Colors.white),
Icon(Icons.person, color: Colors.white),
],
selectedIndex: _selectedIndex,
indicatorColor: Colors.amber,
onTap: (int index) {
setState(() {
_selectedIndex = index;
});
},
),
);
}
}
Properties
itemEntering: Define the animation move shape when tap.alignment: Alignment of the item inside the shadow colors.itemHeight: The height of each item.indicatorHeight: Indicator height.indicatorColor*: The color of the indicator and the shadow degrees.selectedIndex*: Current selected index.items*:StageNavigationBaritems, must be >= 2.onTap*: On item tap.barWidth:StageNavigationBarwidth.itemPadding: The padding of each item.barPadding?:StageNavigationBarinternal padding.barMargin?:StageNavigationBarexternal padding.duration: The transition duration.decoration?:StageNavigationBarbox decoration.
Default values
itemEntering = StageNavigationEntering.top,alignment = Alignment.center,itemHeight = 60,indicatorHeight = 5,barWidth = double.infinityitemPadding = const EdgeInsets.all(0),duration = const Duration(milliseconds: 200),
StageNavigationEntering Values
StageNavigationEntering.top
StageNavigationEntering.center
StageNavigationEntering.bottom
Event
onTap: (index){
}
đš Showcase
StageNavigationEntering
itemEntering: StageNavigationEntering.top

itemEntering: StageNavigationEntering.center

itemEntering: StageNavigationEntering.bottom

đą Example Project
đ¨đģâđģ Contributors
Mohammad Alamoudi @mu7mmd