marianocordoba/fab-circular-menu

How to place floating button in center

Closed this issue · 2 comments

How to place floating button in center

Same issue

You can place FAB in the center of the screen by using the new alignment property added in version 1.0.0

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Placeholder(),
        floatingActionButton: FabCircularMenu(
          alignment: Alignment.bottomCenter
          children: <Widget>[
            // ...
          ]
        )
      )
    );
  }
}