responsive_navigation_bar
8.0.0+1, released 5 days ago by achim.io
A responsive bottom navigation bar with automatic scaling for screen sizes.
What it does
Provides a responsive bottom navigation bar widget that automatically scales text size, icon size, and button padding depending on the screen size. It supports gradients, borders, background blur, and custom button spacing.
AI-written summary of version 8.0.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a responsive bottom navigation bar for a multi-platform Flutter app.
- You want automatic scaling of text, icons, and padding based on screen size.
Skip it when
- Your app uses a Flutter version older than 3.47.
- You need a navigation drawer or a standard top navigation mechanism instead of a bottom bar.
Strengths
- Very easy to set up and beginner friendly.
- Provides responsive sizing by default for text and icons.
- Offers rich customization like gradients, borders, and blurred background.
Weaknesses
- Requires maintaining the selected state manually via your app's state.
- Requires Flutter 3.47 or newer.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Flutter 3.47 or newer and the material_ui dependency.
return Scaffold(
body: Center(child: Text('Tab $selectedIndex')),
bottomNavigationBar: ResponsiveNavigationBar(
selectedIndex: selectedIndex,
onTabChange: (index) => setState(() => selectedIndex = index),
navigationBarButtons: const [
NavigationBarButton(text: 'Home', icon: Icons.home),
NavigationBarButton(text: 'Settings', icon: Icons.settings),
],
),
);Alternatives
Packages that do the same job and could replace responsive_navigation_bar.
- awesome_bottom_bar
A customizable bottom navigation bar with various animated styles.
50Compare - adaptive_navbar
A responsive Flutter navigation bar that switches between a full bar and a drawer based on screen size.
82Compare - rolling_bottom_bar
Dynamic bottom navigation bar with an animated ball indicator
72Compare - circular_bottom_navigation
Circular bottom navigation bar with animated circular icons
50Compare
Works with
Packages commonly used together with responsive_navigation_bar: ones it builds on, ones built on it, and its own family.