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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:material_speed_dial/material_speed_dial.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material Speed Dial Demo'),
      ),
      floatingActionButton: SpeedDial(
        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: () {},
          ),
        ],
      ),
    );
  }
}
8
likes
100
pub points
73%
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