Skip to content
pubscout

flutter_floating_bottom_bar

3.1.0, released 7 days ago by hashstudios.dev

An adaptable floating bottom bar that reacts to scrolling and stays accessible.

WASM-readyUses material_ui
$ flutter pub add flutter_floating_bottom_bar
Source repository

What it does

It floats any widget above your content and automatically manages its visibility based on scroll notifications or imperative controllers. It provides adaptive sizing, custom motion, safe area handling, and keyboard avoidance.

AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a navigation or search bar that floats above scrollable content.
  • You need scroll-aware show and hide behavior without manual ScrollController plumbing.
  • You need an adaptable width layout that caps at a maximum width on tablets and desktop.

Skip it when

  • You require a traditional fixed-position bottom navigation bar integrated directly into the Scaffold.
  • Your scroll source does not bubble up ScrollNotification and cannot use reportScroll.

Strengths

  • Notification-based scroll detection requires no complex controller plumbing.
  • Includes accessibility features such as non-interactive hidden states and proper touch targets.
  • Supports adaptive width configurations for wide screens and tablets.

Weaknesses

  • Scrollables that do not emit ScrollNotification require manual reporting via controller methods.
  • Custom transition builders are strictly restricted to paint-only wrappers to maintain stable footprints.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires Dart >=3.12.0 and Flutter >=3.44.0.

BottomBar(
  layout: const BottomBarLayout.adaptive(maxWidth: 420),
  body: BottomBarBodyPadding(
    padding: const EdgeInsets.only(top: 24),
    child: ListView.builder(
      padding: const EdgeInsets.symmetric(horizontal: 16),
      itemCount: 50,
      itemBuilder: (_, index) => ListTile(title: Text('Item $index')),
    ),
  ),
  child: const Padding(
    padding: EdgeInsets.symmetric(horizontal: 16, vertical: 14),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        Icon(Icons.home_rounded),
        Text('Floating bar'),
        Icon(Icons.search_rounded),
      ],
    ),
  ),
)

Alternatives

Packages that do the same job and could replace flutter_floating_bottom_bar.

Works with

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