material_speed_dial 0.0.7 copy "material_speed_dial: ^0.0.7" to clipboard
material_speed_dial: ^0.0.7 copied to clipboard

A speed dial package for Flutter with material design.

material_speed_dial #

A simple Material speed dial.

Preview #

Preview

Usage #

  1. Add to your dependencies
dependencies:
  material_speed_dial: 0.0.7
  1. Add to your widget tree
class MyHomePage extends StatelessWidget {
  final _key = GlobalKey<SpeedDialState>();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      floatingActionButton: SpeedDial(
        key: _key,
        invokeAfterClosing: true,
        child: Icon(Icons.add),
        expandedChild: Icon(Icons.share),
        backgroundColor: Colors.blue,
        expandedBackgroundColor: Colors.black,
        children: [
          SpeedDialChild(
            child: Icon(Icons.close),
            label: Text('Test'),
            onPressed: () {},
          ),
          SpeedDialChild(
            child: Icon(Icons.pending),
            label: Text('Another Test'),
            onPressed: () {},
          ),
        ],
      ),
    );
  }
}
  1. Check for state or toggle
final isOpen = _key.currentState.isOpen;
_key.currentState.toggle();
8
likes
100
pub points
71%
popularity

Publisher

unverified uploader

A speed dial package for Flutter with material design.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on material_speed_dial