Skip to content

Instantly share code, notes, and snippets.

@VB10
Created April 26, 2020 19:33
Show Gist options
  • Select an option

  • Save VB10/fb8ca89bde5ec2fdbfa563c0cf596356 to your computer and use it in GitHub Desktop.

Select an option

Save VB10/fb8ca89bde5ec2fdbfa563c0cf596356 to your computer and use it in GitHub Desktop.
Grid Fab
import 'package:flutter/material.dart';
class GridFabView extends StatefulWidget {
@override
_GridFabViewState createState() => _GridFabViewState();
}
class _GridFabViewState extends State<GridFabView> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: GridView.count(
crossAxisCount: 3,
childAspectRatio: 1.5,
crossAxisSpacing: 10,
mainAxisSpacing: 10,
children: [
FloatingActionButton(onPressed: () {}),
FloatingActionButton(onPressed: () {}),
FloatingActionButton(onPressed: () {}),
FloatingActionButton(onPressed: () {}),
FloatingActionButton(onPressed: () {}),
FloatingActionButton(onPressed: () {}),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment