From b767b02470d2fffd12d5904b3471db70cdc7469c Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 31 Aug 2019 12:11:39 -0700 Subject: [PATCH] add eastcounty.dart --- web/eastcounty.dart | 42 ++++++++++++++++++++++++++++++++++++++++++ web/feedback.dart | 10 +--------- web/smalltowns.dart | 7 +++++++ 3 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 web/eastcounty.dart diff --git a/web/eastcounty.dart b/web/eastcounty.dart new file mode 100644 index 0000000..cc4fa21 --- /dev/null +++ b/web/eastcounty.dart @@ -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 { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text('walkable small-towns\nwith bars-restaurants'), + centerTitle: true, + backgroundColor: navy, + actions: [ + 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: [ + 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'), + ], + ), + ), + ), + ); + } +} diff --git a/web/feedback.dart b/web/feedback.dart index 5d39612..5e26e5d 100644 --- a/web/feedback.dart +++ b/web/feedback.dart @@ -13,17 +13,9 @@ class _FeedBackState extends State { return Scaffold( appBar: AppBar( - title: Text('trimet'), + title: Text('feedback'), centerTitle: true, backgroundColor: navy, - actions: [ - IconButton( - icon: Icon(Icons.home), - onPressed: () { - Navigator.of(context).popUntil((route) => route.isFirst); - }, - ), - ], ), backgroundColor: peacockBlue, body: SingleChildScrollView( diff --git a/web/smalltowns.dart b/web/smalltowns.dart index 4f466f3..9de9f7d 100644 --- a/web/smalltowns.dart +++ b/web/smalltowns.dart @@ -3,6 +3,7 @@ import 'defaults.dart'; import 'card_templates.dart'; import 'eastwillamettevalley.dart'; import 'westwillamettevalley.dart'; +import 'eastcounty.dart'; class SmallTowns extends StatefulWidget { @override @@ -44,6 +45,12 @@ class _SmallTownsState extends State { }, child: cardOne('West Willamette Valley'), ), + InkWell( + onTap: () async { + await Navigator.push(context, MaterialPageRoute(builder: (context) => EastCounty())); + }, + child: cardOne('East County'), + ), ], ), ),