concise-pdx/web/smalltowns.dart

61 lines
1.8 KiB
Dart
Raw Normal View History

2019-08-30 13:05:00 -07:00
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'eastwillamettevalley.dart';
import 'westwillamettevalley.dart';
2019-08-31 12:11:39 -07:00
import 'eastcounty.dart';
2019-08-30 13:05:00 -07:00
class SmallTowns extends StatefulWidget {
@override
_SmallTownsState createState() => _SmallTownsState();
}
class _SmallTownsState extends State<SmallTowns> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
},
child: cardOne('East Willamette Valley'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WestWillametteValley()));
},
child: cardOne('West Willamette Valley'),
),
2019-08-31 12:11:39 -07:00
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastCounty()));
},
child: cardOne('East County'),
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}