Skip to content

Gmail like floating action button which expands on scrolling up

License

Notifications You must be signed in to change notification settings

simrat39/animated_fab

Repository files navigation

AnimatedFAB

Description:

A Gmail like FloatingActionButton which expands when the user scrolls up.

Fab3

Usage:

In your scaffold:

floatingActionButton: AnimatedFAB(
    scrollController: scrollController,
    icon: Icon(
      Icons.add,
      color: Colors.white,
    ),
    text: 'Add',
    maxWidth: 50,
    backgroundColor: Colors.teal,
    onTap: () {
      print("tapped");
    },
    // textStyle: whatever
    // contentPaddingFactor: whatever
  ),

Make sure a valid scroll controller is provided.

Add to your project

In your pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  animated_fab:
    git: 
      url: https://github.com/simrat39/animated_fab

About

Gmail like floating action button which expands on scrolling up

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published