Skip to content

lyw1995/flutter-fab-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fab_menu

A FabMenu widget Demo for Flutter.

screenshot

Demo

import 'package:flutter/material.dart';
  import 'fab_menu.dart';
  void main() => runApp(FabMenuDemo());
  
  class FabMenuDemo extends StatelessWidget {
  
    @override
    Widget build(BuildContext context) {
      return  MaterialApp(
        home:   Scaffold(
          appBar: AppBar(
            title: Text("FabMenu Demo"),
          ),
          body: Row(
            children: <Widget>[
              Expanded(
                child: FabMenu()
                    .setLocation(MenuLocation.BottomLeft) // location: bleft or bright
                    .addCenterFab(Icons.menu) // must has center button
                    .addActionFab(Icons.phone) 
                    .addActionFab(Icons.email)
                    .addActionFab(Icons.location_on),
              ),
              Expanded(
                child: FabMenu()
                    .addCenterFab(Icons.menu)
                    .addActionFab(Icons.phone)
                    .addActionFab(Icons.email)
                    .addActionFab(Icons.location_on),
              ),
            ],
          ),
        ),
      );
    }
  }

About

A FabMenu widget Demo for Flutter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published