Expendable Fab Menu

Pub Pull Requests are welcome Codemagic build status Null safety

A flutter expendable simple FAB Floating Action Button menu

Showcase

Installation

Just add expendable_fab to your pubspec.yml file

dependencies:
  expendable_fab: ^0.0.1

Example

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Placeholder(),
        floatingActionButton: ExpendableFab(
          distance: 112.0,
          children: [
            ActionButton(
              onPressed: () => toast(context, 'balance'),
              icon: const Icon(Icons.account_balance),
            ),
            ActionButton(
              onPressed: () => toast(context, 'money'),
              icon: const Icon(Icons.money),
            ),
          ],
        ),
      ),
    );
  }
}

You can check for a more complete example in the example directory.

Customize

You can customize the widget appareance using the following properties:

PropertyDescriptionDefault
distanceSets the widget distance from bottom and right side112

Contributing

Please submit a PR 😁, I want to have 1 ) action buttons customization 2 ) button customization 3 ) more animations

Libraries

expendable_fab