Table

  • Usage

    
                    import 'package:flutter/material.dart';
     
    void main() {
      runApp(MyApp());
    }
     
    class MyApp extends StatefulWidget {
      @override
      _MyAppState createState() => _MyAppState();
    }
     
    class _MyAppState extends State<MyApp> {
      double iconSize = 40;
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          home: Scaffold(
              appBar: AppBar(
                title: Text('Flutter Table - tutorialkart.com'),
              ),
              body: Center(
                  child: Column(children: <Widget>[
                Container(
                  margin: EdgeInsets.all(10),
                  child: Table(
                    border: TableBorder.all(),
                    children: [
                      TableRow( children: [
                        Column(children:[
                          Icon(Icons.account_box, size: iconSize,),
                          Text('My Account')
                        ]),
                        Column(children:[
                          Icon(Icons.settings, size: iconSize,),
                          Text('Settings')
                        ]),
                        Column(children:[
                          Icon(Icons.lightbulb_outline, size: iconSize,),
                          Text('Ideas')
                        ]),
                      ]),
                      TableRow( children: [
                        Icon(Icons.cake, size: iconSize,),
                        Icon(Icons.voice_chat, size: iconSize,),
                        Icon(Icons.add_location, size: iconSize,),
                      ]),
                    ],
                  ),
                ),
              ]))),
        );
      }
    }