A Flutter package to create a nice circular menu

  Animation, Button, Floating, Packages

FAB Circular Menu

A Flutter package to create a nice circular menu using a Floating Action Button.

Inspired by Mayur Kshirsagar‘s great FAB Microinteraction design.

Showcase

Getting started

Wrap your content with FabCircularMenu and set your desired options:

MaterialApp(
  home: Scaffold(
    body: FabCircularMenu(
      child: Placeholder(), // Replace this with your content
      options: <Widget>[
        IconButton(icon: Icon(Icons.home), onPressed: () {
          print('Pressed!');
        })
      ]
    )
  )
)

Options

PropertyTypeDescriptionDefaultCaveat
required childWidgetThe child of this widget
required optionsListThe available options of the menu
ringColorColorThe color of the ringColors.white
ringDiameterdoubleThe diameter of the ringscreenWidth * 1.2
ringWidthdoubleThe width of the ringringDiameter / 3
fabMarginEdgeInsetsThe margin around the FABEdgeInsets.all(24.0)
fabColorColorThe color of the FABprimaryColor
fabOpenColorColorThe color of the FAB when openedprimaryColorWill override fabColor for open state
fabCloseColorColorThe color of the FAB when closedprimaryColorWill override fabColor for close state
fabOpenIconIconThe open iconIcon(Icons.menu)
fabCloseIconIconThe close iconIcon(Icons.close)
animationDurationDurationThe animation durationDuration(milliseconds: 800)
onDisplayChangeFunctionA callback called when the open/close state changesFunction
controllerFabCircularMenuControllerA controller for opening or closing the menunull

Download Floating Action Button Source Code on GitHub

https://github.com/marianocordoba/fab-circular-menu