flutter_expandable_fab 1.0.0 copy "flutter_expandable_fab: ^1.0.0" to clipboard
flutter_expandable_fab: ^1.0.0 copied to clipboard

outdated

Fab button that can show/hide multiple action buttons with animation.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        useMaterial3: true,
        colorSchemeSeed: Colors.blue,
      ),
      home: Scaffold(
        body: const SizedBox.shrink(),
        floatingActionButton: ExpandableFab(
          // distance: 60.0,
          // type: ExpandableFabType.up,
          // fanAngle: 70,
          // child: const Icon(Icons.account_box),
          // foregroundColor: Colors.amber,
          // backgroundColor: Colors.green,
          // closeButtonStyle: const ExpandableFabCloseButtonStyle(
          //   child: Icon(Icons.abc),
          //   foregroundColor: Colors.deepOrangeAccent,
          //   backgroundColor: Colors.lightGreen,
          // ),
          children: [
            FloatingActionButton.small(
              child: const Icon(Icons.edit),
              onPressed: () {},
            ),
            FloatingActionButton.small(
              child: const Icon(Icons.search),
              onPressed: () {},
            ),
            FloatingActionButton.small(
              child: const Icon(Icons.share),
              onPressed: () {},
            ),
          ],
        ),
      ),
    );
  }
}
229
likes
0
pub points
97%
popularity

Publisher

verified publisherzuvola.com

Fab button that can show/hide multiple action buttons with animation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_expandable_fab