Skip to content

Dredayduncan/animated_expandable_fab

 
 

Repository files navigation

Animated Expandable Fab

A Flutter package for easily creating animated expandable fabs.

Description

Animated Expandable Fab is a package for creating beautiful and customizable expandable floating action buttons. This package provides an easy-to-use widget, ExpandableFab, which can be used to create expandable fabs with various animations, icons, and children.

Features

  • Customizable distance, direction, and animation of expansion
  • Customizable open and close icons
  • Support for multiple children
  • Support for closing the fab on child button press

Getting started

To use this package, add animated_expandable_fab as a dependency in your pubspec.yaml file.

dependencies:
animated_expandable_fab: ^1.0.0

Usage

To use the ExpandableFab widget, simply add it to your widget tree as a child of a Scaffold widget. You can customize the distance, direction, and animation of the expansion by passing in the appropriate parameters. You can also add children to the fab by passing in a list of widgets.

Scaffold(
    floatingActionButton: ExpandableFab(
    distance: 100,
    openIcon: Icon(Icons.add),
    closeIcon: Icon(Icons.close),
    children: [
        ActionButton(
        child: Text("Child 1"),
        onPressed: () {},
        ),
        ActionButton(
        child: Text("Child 2"),
        onPressed: () {},
        ),
     ],
),)

Additional information

If you have any issues or feature requests, please file them in the issue tracker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 32.8%
  • Dart 30.8%
  • CMake 29.3%
  • HTML 2.8%
  • C 2.2%
  • Swift 1.8%
  • Other 0.3%