v0.0.2animated_fab_button_menu
Flutter package to implement an animated FAB with a scrollable Menu.
Flutter package to implement an animated FAB with a scrollable Menu.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0English project snapshot. Visit GitHub for the latest content.
Animated FAB Menu package lets you add an animated floating action button to your Flutter app that open a list of menu items.
The FabMenu widget is built to be placed in the Scaffold.floatingActionButton argument, replacing the FloatingActionButton widget. Its position is set by the fabAlignment property so you don't need to set it with the Scaffold.floatingActionButtonLocation argument. By default the position is set to bottomCenter, but you can change it by the fabAlignment property to place the button anywhere in the screen. By using the fabIcon and fabBackgroundColorproperties, you can change the icon and the color of the button to whatever you like.
By pressing the floating action button, a page containing a menu list will be opening with some cool animation. This menu contains items that you can specify by the children list property. Every child inside the list takes a title for the item name, style for the text widget of the name, onTap function to provide the logic of the on tap action on each child. On top of that, you have an overlayColor property to change the color of the background opened page, overlayOpacity to change the opacity of the background color and closeMenuButton to choose your own back button widget.
The package will handle the animation by itself.
animated_fab_menu
pubspec.yaml (and run dart pub get):dependencies:
animated_fab_button_menu: ^0.0.2
import 'package:animated_fab_button_menu/animated_fab_button_menu.dart';
There are a number of properties that you can modify:
Example Usage ( complete with all params ):
|
Here's what it looks like:
https://user-images.githubusercontent.com/68671238/134640734-751456fa-686b-4e77-bc8d-04ba3a324baf.mp4 |
We are working on some improvements including:
overlayColor and overlayOpacity properties.Please file an issue! to send feedback or report a bug. Thank you!