reusable_speed_dial 0.0.1 copy "reusable_speed_dial: ^0.0.1" to clipboard
reusable_speed_dial: ^0.0.1 copied to clipboard

A Flutter package providing a customizable, animated speed dial button for quick access to multiple actions, with support for child buttons, labels, and icons.

example/main.dart

import 'package:flutter/material.dart';
import 'package:reusable_speed_dial/reusable_speed_dial.dart';
import 'package:reusable_speed_dial/speed_dial_child.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Reusable Speed Dial Example',
      home: const SpeedDialExample(),
    );
  }
}

class SpeedDialExample extends StatelessWidget {
  const SpeedDialExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Speed Dial Demo')),
      body: const Center(child: Text('Tap the FAB to open Speed Dial')),
      floatingActionButton: SpeedDial(
        onOpenIcon: Icons.menu,
        onCloseIcon: Icons.close,
        speedDialChildren: [
          SpeedDialChild(
            child: const Icon(Icons.message),
            label: 'Message',
            foregroundColor: Colors.white,
            backgroundColor: Colors.blue,
            onPressed: () => debugPrint('Message tapped'),
          ),
          SpeedDialChild(
            child: const Icon(Icons.mail),
            label: 'Email',
            foregroundColor: Colors.white,
            backgroundColor: Colors.green,
            onPressed: () => debugPrint('Email tapped'),
          ),
        ],
      ),
    );
  }
}
0
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package providing a customizable, animated speed dial button for quick access to multiple actions, with support for child buttons, labels, and icons.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on reusable_speed_dial