bart
2.0.0, released 3 months ago by apparence.io
A bottom navigation bar and tabulation system using Navigator for switching tabs.
Uses material_ui
What it does
Bart provides a bottom navigation bar solution supporting inner routing inside tabs, parent routing, and state caching. It includes Material and Cupertino themes with automatic switching.
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 bottom navigation bar with inner routing per tab
- You require tab state caching and persistence
- You want support for both Material and Cupertino bottom bar styles
Skip it when
- Your app does not use a tab-based navigation layout
- You are using a package that conflicts with material_ui and cupertino_ui requirements
Strengths
- Supports both Material and Cupertino themes with automatic switching
- Built-in state caching via PageStorageKey
- Provides animated show/hide for both AppBar and bottom bar
Weaknesses
- Requires specific usage of the material_ui and cupertino_ui packages rather than standard flutter Material widgets
- Minimum constraints require Dart 3.12 / Flutter 3.44 or newer
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Requires adding bart and material_ui dependencies and importing material_ui instead of standard flutter material.
class MainPageMenu extends StatelessWidget {
const MainPageMenu({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return BartScaffold(
routesBuilder: subRoutes,
bottomBar: BartBottomBar.adaptive(),
);
}
}Alternatives
Packages that do the same job and could replace bart.
Works with
Packages commonly used together with bart: ones it builds on, ones built on it, and its own family.
- material_uibart depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uibart depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- universal_iobart depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs
- universal_htmlbart depends on itCross‑platform replacement for dart:html with DOM parsing, XML support, and EventSource.