GridTile In Flutter

GridTile In Flutter :

GridTile in flutter
GridTile 
A grid list is a [GridView] of tiles in a vertical and horizontal array. Each tile typically contains some visually rich content (e.g., an image) together with a [GridTileBar] in either a [header] or a [footer]

class GridTileDemo extends StatefulWidget {
  createState() => _GridTitle();
}

class _GridTitle extends State<GridTileDemo> {
  Widget build(BuildContext context) {
    return Container(
        height: 400,
        color: Color(0xffc91b3a),
        child:  GridView.count(
          crossAxisCount: 2,
          mainAxisSpacing: 10.0,
          crossAxisSpacing: 4.0,
          padding: const EdgeInsets.all(4.0),
          childAspectRatio: 1.3,
          children: <Widget>[
            GridTile(
              header: Text("GridTile header", style: TextStyle(color: Colors.white)),
              child: Container(
                padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
                child: Text("GridTile", style: TextStyle(color: Colors.white)),
              ),
              footer: Text("GridTile footer", style: TextStyle(color: Colors.white)),
            ),
            Image.network('https://flutter.io/assets/homepage/news-2-599aefd56e8aa903ded69500ef4102cdd8f988dab8d9e4d570de18bdb702ffd4.png', scale: 1, fit: BoxFit.cover)
          ]
        )
    );
  }
}

The flutter tutorial  is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application

For more information about Flutter. visit www.fluttertutorial.in