mirror of
https://github.com/chenasraf/flutter_icon_shadow.git
synced 2026-05-18 01:48:58 +00:00
9f6405390708b7115cee696e54cb2e1f0eaebded
Animation circle bottom bar
Flutter circle bottom bar by animation
how to use:
1. add dependencies to pubspec.yaml:
circle_bottombar: ^1.1.1
2. create tabs:
List<TabItem> tabItems = List.of([
new TabItem(Icons.person_outline, Colors.red.shade100),
new TabItem(Icons.lightbulb_outline, Colors.red.shade200),
new TabItem(Icons.home, Colors.red.shade300),
new TabItem(Icons.phone_locked, Colors.red.shade400),
new TabItem(Icons.person_outline, Colors.red.shade500),
]);
3. create bottombar:
bottomNavigationBar: CircularBottomNavigation(
tabItems,
selectedCallback: (int selectedPos) {
setState(() {
_text = "text " + selectedPos.toString();
});
print("clicked on $selectedPos");
},
controller: _navigationController,
barBackgroundColor: Colors.black,
normalIconColor: Colors.red.shade900,
iconsSize: 24,
selectedIconColor: Colors.white,
animationDuration: Duration(milliseconds: 500),
circleStrokeWidth: 5,
circleStrokeColor: Color(0xFF680200),
barShadowSize: 2.0,
barLineColor: Colors.red.shade900,
barLineSize: 2.0,
barShowLine: true,
)
Languages
C++
38.7%
CMake
31.7%
Dart
21.2%
HTML
3%
Swift
2.8%
Other
2.5%
