import 'package:flutter/material.dart'; void main() { runApp(new MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( title: 'Road Services', theme: new ThemeData( primarySwatch: Colors.green, ), home: new MyHomePage(title: 'Road Services'), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => new _MyHomePageState(); } class _MyHomePageState extends State { @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text(config.title), ), drawer: new Drawer( child: new Text(''), ), body: new Block( padding: new EdgeInsets.all(16.0), children: [ new Card( child: new BlockBody( children: [ new ListItem( leading: new Icon(Icons.local_gas_station), title: new Text('Gas Station'), onTap: () { }, ), new ListItem( leading: new Icon(Icons.local_grocery_store), title: new Text('Grocery Stores'), onTap: () { }, ), new ListItem( leading: new Icon(Icons.restaurant), title: new Text('Restaurants'), onTap: () { }, ), new ListItem( leading: new Icon(Icons.store_mall_directory), title: new Text('Stores'), onTap: () { }, ), new ListItem( leading: new Icon(Icons.traffic), title: new Text('Traffic'), onTap: () { }, ), ], ), ), ], ), floatingActionButton: new FloatingActionButton( onPressed: () { }, child: new Icon(Icons.local_car_wash), ), ); } }