add eastcounty.dart

This commit is contained in:
Trent Palmer 2019-08-31 12:11:39 -07:00
parent 23306616ae
commit b767b02470
3 changed files with 50 additions and 9 deletions

42
web/eastcounty.dart Normal file
View File

@ -0,0 +1,42 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
class EastCounty extends StatefulWidget {
@override
_EastCountyState createState() => _EastCountyState();
}
class _EastCountyState extends State<EastCounty> {
@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>[
cardTwo('Main Ave between Powell and 5th in Downtown Gresham','https://www.google.com/maps/@45.4996431,-122.4304628,17z','downtown-gresham'),
cardTwo('History Columbia River Hwy in Downtown Troutdale','https://www.google.com/maps/@45.540483,-122.3881627,18z','downtown-troutdale'),
],
),
),
),
);
}
}

View File

@ -13,17 +13,9 @@ class _FeedBackState extends State<FeedBack> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('trimet'), title: Text('feedback'),
centerTitle: true, centerTitle: true,
backgroundColor: navy, backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
],
), ),
backgroundColor: peacockBlue, backgroundColor: peacockBlue,
body: SingleChildScrollView( body: SingleChildScrollView(

View File

@ -3,6 +3,7 @@ import 'defaults.dart';
import 'card_templates.dart'; import 'card_templates.dart';
import 'eastwillamettevalley.dart'; import 'eastwillamettevalley.dart';
import 'westwillamettevalley.dart'; import 'westwillamettevalley.dart';
import 'eastcounty.dart';
class SmallTowns extends StatefulWidget { class SmallTowns extends StatefulWidget {
@override @override
@ -44,6 +45,12 @@ class _SmallTownsState extends State<SmallTowns> {
}, },
child: cardOne('West Willamette Valley'), child: cardOne('West Willamette Valley'),
), ),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastCounty()));
},
child: cardOne('East County'),
),
], ],
), ),
), ),