Skip to content
pubscout

draggable_fab

0.1.4, released 5 years ago by an unverified publisher

A wrapper widget that makes a Floating Action Button draggable to screen edges.

WASM-ready
$ flutter pub add draggable_fab
Source repository

What it does

It wraps a FloatingActionButton to allow users to drag it around the screen. The widget snaps or moves to the edges of the screen based on user interaction.

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

Use it when

  • You want to give users the ability to reposition a Floating Action Button.
  • You need a simple wrapper widget for an existing FloatingActionButton without complex setup.

Skip it when

  • You need a non-FAB draggable element (use other gesture or overlay tools instead).
  • You require complex custom physics or non-edge snapping behaviors not documented.

Strengths

  • Easy to integrate as a wrapper around standard FloatingActionButtons.
  • Supports multiple platforms including Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Limited documentation beyond basic usage.
  • No explicit alternatives from the catalog list.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
DraggableFab(
        child: FloatingActionButton(
          onPressed: _incrementCounter,
          child: Icon(Icons.add),
        ),
      );

Alternatives

Packages that do the same job and could replace draggable_fab.