Skip to content
pubscout

flutter_scrolling_fab_animated

0.1.5, released 3 years ago by ajomuch92.site

A floating action button that animates its size when scrolling down.

WASM-ready
$ flutter pub add flutter_scrolling_fab_animated
Source repository

What it does

Provides a scrolling-aware floating action button that changes size and hides its text when scrolling down, and restores itself when returning to the top of a scrollable view. It supports custom icons, animation durations, curves, and long-press actions.

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

Use it when

  • You want a floating action button that collapses or shrinks when users scroll down a ListView or GridView
  • You want to save screen space while scrolling through long lists

Skip it when

  • You are not using a scrollable widget with a ScrollController
  • You require non-Material design floating action components

Strengths

  • Easy to integrate with existing ScrollControllers
  • Supports customizable animation duration, curves, and limits
  • Includes features like ripple effects, long-press support, and icon animation

Weaknesses

  • Limited to floating action button functionality
  • Requires a ScrollController to function

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ScrollingFabAnimated(
  icon: Icon(Icons.add, color: Colors.white),
  text: Text('Add', style: TextStyle(color: Colors.white, fontSize: 16.0)),
  onPress: (){},
  scrollController: _scrollController,
  animateIcon: true,
  inverted: false,
  radius: 10.0,
)

Alternatives

Packages that do the same job and could replace flutter_scrolling_fab_animated.