Commit 91b477ec authored by Meghana Mahadasyam's avatar Meghana Mahadasyam

Add new file

parent 01cb3088
import 'package:flutter/material.dart';
class Dashboard02 extends StatefulWidget {
Dashboard02({Key key, this.title}) : super(key: key);
final String title;
@override
_Dashboard02State createState() => new _Dashboard02State();
}
class _Dashboard02State extends State<Dashboard02> {
Widget Cardd(IconData icon, String text) {
return new InkWell(
child: new Card(
child: new Container(
width: 400.0,
height: 360.0,
child: new Column(
children: <Widget>[
new SizedBox(height: 20.0),
new Icon(
icon,
size: 80.0,
color: Colors.blueGrey,
),
new SizedBox(height: 10.0),
new Text(text, style: TextStyle(fontSize: 22.0))
],
),
),
),
onTap: () {
print(text);
},
);
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
backgroundColor: new Color(0xff332447),
elevation: 0.0,
title: new Text('Wardens List'),
centerTitle: true,
actions: <Widget>[],
),
body: new Container(
color: new Color(0xff332447),
child: GridView.count(
crossAxisCount: 2,
shrinkWrap: true,
padding: new EdgeInsets.all(12.0),
mainAxisSpacing: 20.0,
crossAxisSpacing: 20.0,
children: <Widget>[
Cardd(Icons.dashboard, 'Nikhitha'),
Cardd(Icons.people, 'Akhila'),
Cardd(Icons.shopping_cart, 'Jyothi'),
Cardd(Icons.account_balance_wallet, 'Haritha'),
Cardd(Icons.settings, 'Vasavi'),
Cardd(Icons.help, 'Lakshmi'),
],
),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment