Giter VIP home page Giter VIP logo

fab-circular-menu's Introduction

FAB Circular Menu

Pub Pull Requests are welcome Pull Requests are welcome Codemagic build status

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

Property Type Description Default Caveat
required child Widget The child of this widget -
required options List The available options of the menu -
ringColor Color The color of the ring Colors.white
ringDiameter double The diameter of the ring screenWidth * 1.2
ringWidth double The width of the ring ringDiameter / 3
fabMargin EdgeInsets The margin around the FAB EdgeInsets.all(24.0)
fabColor Color The color of the FAB primaryColor
fabOpenColor Color The color of the FAB when opened primaryColor Will override fabColor for open state
fabCloseColor Color The color of the FAB when closed primaryColor Will override fabColor for close state
fabOpenIcon Icon The open icon Icon(Icons.menu)
fabCloseIcon Icon The close icon Icon(Icons.close)
animationDuration Duration The animation duration Duration(milliseconds: 800)
onDisplayChange Function A callback called when the open/close state changes Function
controller FabCircularMenuController A controller for opening or closing the menu null

fab-circular-menu's People

Contributors

marianocordoba avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.