m3_floating_toolbar
0.3.0, released 3 months ago by abrah.am
A Material Design 3 floating pill-style toolbar widget for Flutter.
What it does
Provides a customizable floating toolbar widget supporting horizontal and vertical layouts, Material Design 3 color variants, icon and label action buttons, selected states, and optional FloatingActionButton integration.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a Material Design 3 floating action toolbar or pill toolbar in your Flutter app.
- You want to display icon-only, label-only, or combined buttons with built-in accessibility features.
Skip it when
- You are building a standard top app bar or bottom navigation bar rather than a floating toolbar component.
Strengths
- Supports Material Design 3 specs including automatic theming, touch targets, and elevation.
- Offers both horizontal and vertical layouts with optional FloatingActionButton integration.
- Provides built-in accessibility with semantic labels and tooltips.
Weaknesses
- Limited to Material Design 3 floating toolbar patterns.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
M3FloatingToolbar(
actions: [
M3FloatingToolbarAction(
icon: Icons.home,
semanticLabel: 'Home',
tooltip: 'Home',
onPressed: () => print('Home pressed'),
),
M3FloatingToolbarAction(
icon: Icons.explore,
semanticLabel: 'Explore',
tooltip: 'Explore',
onPressed: () => print('Explore pressed'),
),
],
)Alternatives
Packages that do the same job and could replace m3_floating_toolbar.
- flutter_speed_dial
Flutter plugin to implement a Material Design Speed Dial with labels and animated icons.
92Compare - loading_icon_button
Flutter loading buttons with state machine, success/error states and animated thinking-orbs.
69Compare - flutter_expandable_fab
Speed dial floating action button widget that animates multiple action buttons.
82Compare - m3_carousel
A Material Design 3 carousel implementation for Flutter.
69Compare
Works with
Packages commonly used together with m3_floating_toolbar: ones it builds on, ones built on it, and its own family.