floating_menu_button 0.0.2 copy "floating_menu_button: ^0.0.2" to clipboard
floating_menu_button: ^0.0.2 copied to clipboard

A floating menu button contain a list of items.

A Package helps to create Floating Menu to show list of menu items.

Example #

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: FloatingMenuWidget(
        menuItems: [
          MenuItems(id: "1", value: "Item 1"),
          MenuItems(id: "2", value: "Item 2"),
          MenuItems(id: "3", value: "Item 3")
        ],
        onItemSelection: (menuItems){
          final snackBar = SnackBar(content: Text("${menuItems.value} Clicked"));
          ScaffoldMessenger.of(context).showSnackBar(snackBar);
        },

        child: Container(
          color: Colors.white,
        ),
      ),
    );
  }
}

On Close

close_30

On Open

open_30

3
likes
130
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

A floating menu button contain a list of items.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

animate_icons, circular_reveal_animation, flutter

More

Packages that depend on floating_menu_button