v1.0.0flip_box_bar_plus
DannnielによるDribbbleデザインからインスパイアされた3D BottomNavigationBar
34いいね 3130日間ダウンロード140Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Flutter における 3D ボトムナビゲーションバー
{"sdk":"flutter"}{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Forked from Flip_box_bar, added support for vertical position
A 3D BottomNavigationBar inspired by Dribbble design by Dannniel.
https://github.com/deven98/flip_box_bar/blob/master/demo.gif
// In Scaffold
int selectedIndex = 0;
FlipBoxBarPlus(
selectedIndex: index,
items: [
FlipBarItem(icon: Icon(Icons.map), text: Text("Map"), frontColor: Colors.blue, backColor: Colors.blueAccent),
FlipBarItem(icon: Icon(Icons.add), text: Text("Add"), frontColor: Colors.cyan, backColor: Colors.cyanAccent),
FlipBarItem(icon: Icon(Icons.chrome_reader_mode), text: Text("Read"), frontColor: Colors.orange, backColor: Colors.orangeAccent),
FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.purple, backColor: Colors.purpleAccent),
FlipBarItem(icon: Icon(Icons.print), text: Text("Print"), frontColor: Colors.pink, backColor: Colors.pinkAccent),
],
onIndexChanged: (newIndex) {
setState() {
selectedIndex = newIndex;
}
},
),
The items to be displayed in the NavBar.
The duration of the animation of the box flip.
Callback for getting value of item selection.
The initial selected index of the NavBar.
The height of the NavBar when it is in bottom nav position.
Set the navigation bar as vertical.
The width of the NavBar when it is in vertical position.