Skip to content
pubscout

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
$ flutter pub add bart
Source repository

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.

  • go_router

    For official and robust declarative routing including shell routes for bottom navigation.

  • auto_route

    For code-generation based robust routing and nested tabs.

  • beamer

    For URI-based routing and delegate navigation.

Works with

Packages commonly used together with bart: ones it builds on, ones built on it, and its own family.