adaptive_navbar
2.0.0, released today by moulibheemaneti.com
A responsive Flutter navigation bar that switches between a full bar and a drawer based on screen size.
What it does
The package provides an AdaptiveNavBar widget that renders a traditional app bar on larger screens and collapses into a drawer menu on mobile devices. It relies on the material_ui library for theming and widget implementations.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a single navigation widget that works across web, desktop, and mobile without writing custom responsive code.
- Your app already uses material_ui and targets Flutter 3.47+.
Skip it when
- Your project still depends on the default flutter/material.dart library.
- You require advanced navigation features like deep linking or nested routing beyond a simple bar.
Strengths
- Zero‑code responsive behavior – the widget adapts automatically.
- Integrates with material_ui, keeping styling consistent.
- Simple API – same as previous 1.x versions.
Weaknesses
- Requires migration to material_ui and Flutter 3.47+, which may be a breaking change for existing apps.
- Limited to basic navigation UI; no built‑in routing or state management.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add adaptive_navbar ^2.0.0 and material_ui to pubspec, ensure Flutter 3.47+ and migrate imports to material_ui (run dart fix --apply --code=migrate_design_widgets).
import 'package:material_ui/material_ui.dart';
import 'package:adaptive_navbar/adaptive_navbar.dart';
class MyHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AdaptiveNavBar(
title: Text('My App'),
items: [
NavBarItem(label: 'Home', icon: Icons.home, onTap: () {}),
NavBarItem(label: 'Settings', icon: Icons.settings, onTap: () {}),
],
),
body: Center(child: Text('Content')),
);
}
}Alternatives
Packages that do the same job and could replace adaptive_navbar.
- responsive_framework
Provides a full set of breakpoints and responsive utilities to build custom navigation bars without a dedicated widget.
50Compare - responsive_builder
Offers responsive widget builders that let you create your own adaptive navbar with fine‑grained control.
50Compare - value_layout_builder
A lightweight helper for building layout‑aware widgets, suitable for custom navbar implementations.
59Compare
Works with
Packages commonly used together with adaptive_navbar: ones it builds on, ones built on it, and its own family.