2

I've seen multiple examples and projects that include a speed dial such as is found in Google's own Calendar app. But instead, I want to make a FAB transform into an action menu such as is demonstrated on material.io. They show a graphic that demonstrates this, but as I've found have not documented anyway to do this in the Flutter API. Would anybody know how to accomplish this whether it be in a package or custom code (I am fairly adept at Flutter and Dart)?

odonckers
  • 368
  • 1
  • 3
  • 11
  • Maybe you should have a look at: https://github.com/js94766524/fab_menu It's not exactly what you're looking for but I think it may help you. – Cristi Nica Mar 08 '19 at 23:31

1 Answers1

-1

I think you can achieve this by using showModalBottomSheet
Give it a try :

 floatingActionButton: Builder(
            builder: (BuildContext context) {
              return FloatingActionButton(
                child: Icon(Icons.edit),
                    showModalBottomSheet(
                      context: context,
                      builder: (BuildContext context) {
                      return //widgets you want 
             });

          );
        })
CodeforCore
  • 675
  • 6
  • 9