flutter_animator_widgets 1.0.0 flutter_animator_widgets: ^1.0.0 copied to clipboard
Awesome customizable animated widgets. Widgets are build with the flutter_animator package. (you should check it out ;))
animator_widgets #
Provides awesome stylable animated widgets.
Please note that there is currently only one awesome widget: FlyOutMenu, but others will soon follow!
This project uses the flutter_animator project for it's animations. Be sure to check it out.
Getting Started #
FlyOutMenu #
Basic example
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Text(pressedItem != null
? "Last pressed: $pressedItem"
: "No items pressed"),
),
floatingActionButton: FlyOutMenu(
key: _flyoutMenuKey,
///^-- use a global key to call _flyoutMenuKey.currentState.close() on buttonPress.
buttons: buttons,
///^-- List<Widget> so you can add your own widgets and handle the press yourself.
animation: FlyOutAnimation.flipperCard,
///^-- multiple fancy animations available.
defaultIcon: Icons.add,
///^-- icon for standard (closed) state.
activeIcon: Icons.close,
///^-- icon for active (open) state.
),
);
}
Full working Examples can be found at the example tab. If you like you can also download the example folder to see how this works