Last updated:
0 purchases
responsive bottom bar
responsive_bottom_bar #
Flutter package to help you create a fully responsive bottom bar. You can add titles and icons
like in a regular bottom bar and the package will handle responsiveness for you.
Getting Started #
Example:
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Text("hello world: $currentIndex"),
bottomNavigationBar: ResponsiveBottomBar(
items: const [
BottomBarItem(
title: "This is a very long title Yooo",
iconData: Icons.add_box),
BottomBarItem(
title: "Wer sich",
iconData: Icons.share),
BottomBarItem(
title: "jetzt noch",
iconData: Icons.star_rate),
BottomBarItem(
title: "umdreht ist",
iconData: Icons.library_add),
BottomBarItem(
title: "selber schuld :)",
iconData: Icons.pages_rounded),
],
currentIndex: currentIndex,
onTap: (int index) {
setState(() {
currentIndex = index;
});
})),
);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.