Skip to content
pubscout

flutter_expandable_fab

3.0.0, released 3 months ago by zuvola.com

Speed dial floating action button widget that animates multiple action buttons.

WASM-readyUses material_ui
$ flutter pub add flutter_expandable_fab
Source repository

What it does

Provides an ExpandableFab widget that displays multiple action buttons in a fan, vertical, or horizontal layout with enter/exit animations and custom builders.

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

Use it when

  • You need a speed dial menu attached to a FloatingActionButton
  • You want to animate multiple action buttons displaying and hiding in various layout styles

Skip it when

  • Your app uses package:flutter/material.dart and you cannot migrate to material_ui in version 3.0.0

Strengths

  • Supports vertical, horizontal, and fan-shaped layouts
  • Allows custom button builders and non-FAB widgets in the action list
  • Includes overlay style options with color and blur

Weaknesses

  • Version 3.0.0 introduces a breaking migration from flutter/material to material_ui

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires migrating to material_ui as of version 3.0.0.

Scaffold(
  floatingActionButtonLocation: ExpandableFab.location,
  floatingActionButton: ExpandableFab(
    children: [
      FloatingActionButton.small(
        heroTag: null,
        child: const Icon(Icons.edit),
        onPressed: () {},
      ),
      FloatingActionButton.small(
        heroTag: null,
        child: const Icon(Icons.search),
        onPressed: () {},
      ),
    ],
  ),
),

Alternatives

Packages that do the same job and could replace flutter_expandable_fab.

Works with

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