https://github.com/simrat39/animated_fab
Gmail like floating action button which expands on scrolling up
https://github.com/simrat39/animated_fab
Last synced: about 1 year ago
JSON representation
Gmail like floating action button which expands on scrolling up
- Host: GitHub
- URL: https://github.com/simrat39/animated_fab
- Owner: simrat39
- License: other
- Created: 2020-11-25T04:43:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T23:33:44.000Z (over 5 years ago)
- Last Synced: 2025-01-16T06:31:14.971Z (over 1 year ago)
- Language: Dart
- Homepage:
- Size: 20.9 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AnimatedFAB
## Description:
### A Gmail like FloatingActionButton which expands when the user scrolls up.

## 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