Created
April 26, 2020 19:33
-
-
Save VB10/fb8ca89bde5ec2fdbfa563c0cf596356 to your computer and use it in GitHub Desktop.
Grid Fab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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