add urls and ability to deep link

This commit is contained in:
Trent Palmer 2019-11-04 01:21:25 -08:00
parent 45fee08f5f
commit c15adcc08b
89 changed files with 1460 additions and 356 deletions

View File

@ -7,7 +7,7 @@ packages:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "0.38.2"
version: "0.38.5"
archive:
dependency: transitive
description:
@ -28,21 +28,21 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
version: "2.4.0"
bazel_worker:
dependency: transitive
description:
name: bazel_worker
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.21"
version: "0.1.23"
build:
dependency: transitive
description:
name: build
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
version: "1.2.0"
build_config:
dependency: transitive
description:
@ -56,42 +56,42 @@ packages:
name: build_daemon
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0"
build_modules:
dependency: transitive
description:
name: build_modules
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.2"
build_resolvers:
dependency: transitive
description:
name: build_resolvers
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.7"
version: "1.2.1"
build_runner:
dependency: "direct dev"
description:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.9"
version: "1.7.1"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.1"
version: "4.1.0"
build_web_compilers:
dependency: "direct dev"
description:
name: build_web_compilers
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
version: "2.7.0"
built_collection:
dependency: transitive
description:
@ -161,7 +161,7 @@ packages:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.10"
version: "1.3.2"
fixnum:
dependency: transitive
description:
@ -174,7 +174,7 @@ packages:
description:
path: "packages/flutter_web"
ref: HEAD
resolved-ref: "3973ac51f326c0a013232f39e9962bd02712d7dd"
resolved-ref: c04fb502b842859de07e36954a9390465a5426c0
url: "https://github.com/flutter/flutter_web"
source: git
version: "0.0.0"
@ -183,7 +183,7 @@ packages:
description:
path: "packages/flutter_web_ui"
ref: HEAD
resolved-ref: "3973ac51f326c0a013232f39e9962bd02712d7dd"
resolved-ref: c04fb502b842859de07e36954a9390465a5426c0
url: "https://github.com/flutter/flutter_web"
source: git
version: "0.0.0"
@ -193,14 +193,14 @@ packages:
name: front_end
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.24"
version: "0.1.27"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.7"
version: "1.2.0"
graphs:
dependency: transitive
description:
@ -214,7 +214,7 @@ packages:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0+2"
version: "0.14.0+3"
http:
dependency: transitive
description:
@ -270,7 +270,7 @@ packages:
name: kernel
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.24"
version: "0.3.27"
logging:
dependency: transitive
description:
@ -284,7 +284,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.5"
version: "0.12.6"
meta:
dependency: transitive
description:
@ -299,6 +299,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.6+3"
node_interop:
dependency: transitive
description:
name: node_interop
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
node_io:
dependency: transitive
description:
name: node_io
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1+2"
package_config:
dependency: transitive
description:
@ -340,7 +354,7 @@ packages:
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.15"
version: "1.0.0"
pub_semver:
dependency: transitive
description:
@ -368,7 +382,7 @@ packages:
name: scratch_space
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
version: "0.0.4+1"
shelf:
dependency: transitive
description:
@ -466,13 +480,13 @@ packages:
name: web_socket_channel
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.15"
version: "1.1.0"
yaml:
dependency: transitive
description:
name: yaml
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.16"
version: "2.2.0"
sdks:
dart: ">=2.4.0 <3.0.0"
dart: ">=2.5.0 <3.0.0"

View File

@ -1,4 +1,5 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'washingtonpark.dart';
@ -9,6 +10,7 @@ import 'washingtonstate.dart';
import 'centraloregon.dart';
import 'eastwillamettevalleysights.dart';
import 'westwillamettevalleysights.dart';
import 'concisepdx.dart';
class Attractions extends StatefulWidget {
@override
@ -16,10 +18,24 @@ class Attractions extends StatefulWidget {
}
class _AttractionsState extends State<Attractions> {
void initState() {
html.window.history.pushState("","must-see-and-do","/must-see-and-do.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text(
'attractions',
),
@ -33,50 +49,50 @@ class _AttractionsState extends State<Attractions> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WestWillametteValleySights()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WestWillametteValleySights()));
},
child: cardOne('Sight-See in the West Willamette Valley.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastWillametteValleySights()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValleySights()));
},
child: cardOne('Sight-See in the East Willamette Valley.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => MountHood()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => MountHood()));
},
child: cardOne('Camp, Hike, or Sight-See on Mt Hood.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => OregonCoast()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCoast()));
},
child: cardOne('Camp, Hike, or Sight-See on the Oregon Coast.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => ColumbiaGorge()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ColumbiaGorge()));
},
child: cardOne('Camp, Hike, Cruise, or Sight-See in the Columbia River Gorge.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
},
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at WashingtonPark.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonState()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonState()));
},
child: cardOne('Sight-See in Washington State.'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => CentralOregon()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => CentralOregon()));
},
child: cardOne('Sight-See in Central and Eastern Oregon.'),
),

View File

@ -1,6 +1,16 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'dart:html' as html;
import 'concisepdx.dart';
IconButton Home(BuildContext context) {
return IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
Card infoCard(String leftText,String infoUrl,String infoUrlName) {
return Card(

11
web/central-oregon.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>central-oregon</title>
<script id="route">central-oregon.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'attractions.dart';
class CentralOregon extends StatefulWidget {
@override
@ -8,21 +11,29 @@ class CentralOregon extends StatefulWidget {
}
class _CentralOregonState extends State<CentralOregon> {
void initState() {
html.window.history.pushState("","central-oregon","/central-oregon.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('central-eastern-oregon'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -43,14 +54,6 @@ class _CentralOregonState extends State<CentralOregon> {
wallowaLake(),
hellsCanyon(),
johnDayFossilBeds(),
/*
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonHiking()));
},
child: cardOne('Hiking in Washington State.'),
),
*/
],
),
),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>chinese-japanese-gardens</title>
<script id="route">chinese-japanese-gardens.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -2,6 +2,8 @@ import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'dart:html' as html;
import 'faqs.dart';
class ChineseJapaneseGardens extends StatefulWidget {
@override
@ -9,6 +11,10 @@ class ChineseJapaneseGardens extends StatefulWidget {
}
class _ChineseJapaneseGardensState extends State<ChineseJapaneseGardens> {
void initState() {
html.window.history.pushState("","chinese-japanese-gardens","/chinese-japanese-gardens.html");
super.initState();
}
@override
Widget build(BuildContext context) {
@ -18,16 +24,21 @@ class _ChineseJapaneseGardensState extends State<ChineseJapaneseGardens> {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Faqs()));
},
);
}
),
title: Text('chinese-japanese-gardens'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>columbia-gorge-camping</title>
<script id="route">columbia-gorge-camping.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/columbia-gorge.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>columbia-gorge</title>
<script id="route">columbia-gorge.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,8 +1,10 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'gorgecamping.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'attractions.dart';
class ColumbiaGorge extends StatefulWidget {
@override
@ -10,20 +12,29 @@ class ColumbiaGorge extends StatefulWidget {
}
class _ColumbiaGorgeState extends State<ColumbiaGorge> {
void initState() {
html.window.history.pushState("","columbia-gorge","/columbia-gorge.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('ColumbiaGorge'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -46,8 +57,8 @@ class _ColumbiaGorgeState extends State<ColumbiaGorge> {
infoCard('Wind Surf in the Columbia River Gorge.','https://www.travelportland.com/article/windsurfing-columbia-river-gorge/','b'),
infoCard('Stern-Wheeler Cruises in the Columbia River Gorge.','https://en.wikipedia.org/wiki/Tourist_sternwheelers_of_Oregon','c'),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => GorgeCamping()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => GorgeCamping()));
},
child: cardOne('Camping in the Columbia River Gorge.'),
),

View File

@ -1,4 +1,5 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'streetareas.dart';
import 'vistas.dart';
@ -7,18 +8,114 @@ import 'hikes.dart';
import 'attractions.dart';
import 'feedback.dart';
import 'card_templates.dart';
import 'middlesoutheaststreets.dart';
import 'sellwoodstreets.dart';
import 'northeaststreets.dart';
import 'northstreets.dart';
import 'stjohnsstreets.dart';
import 'northweststreets.dart';
import 'northweststreetssights.dart';
import 'southwest.dart';
import 'smalltowns.dart';
import 'washingtonpark.dart';
import 'eastwillamettevalley.dart';
import 'westwillamettevalley.dart';
import 'eastcounty.dart';
import 'silverton.dart';
import 'oregoncity.dart';
import 'oregoncitysights.dart';
import 'westwillamettevalleysights.dart';
import 'eastwillamettevalleysights.dart';
import 'mounthood.dart';
import 'oregoncoast.dart';
import 'columbiagorge.dart';
import 'washingtonstate.dart';
import 'centraloregon.dart';
import 'gorgecamping.dart';
import 'washingtonhiking.dart';
import 'vistadrives.dart';
import 'vistawalks.dart';
import 'vistahikes.dart';
import 'gorgevistas.dart';
import 'remotevistas.dart';
import 'vistasnorthpdx.dart';
import 'vistasnortheastpdx.dart';
import 'vistassoutheastpdx.dart';
import 'greshamvistas.dart';
import 'oregoncityvistas.dart';
import 'trimet.dart';
import 'chinesejapanesegardens.dart';
void main() => runApp(MainApp());
void main() {
var routePath = "/";
var route = html.window.document.getElementById("route");
if (route != null) {
routePath += route.innerHtml;
}
runApp(MainApp(routePath));
}
class MainApp extends StatelessWidget {
final String route;
MainApp(this.route);
Widget page() {
switch (route) {
case "/": return ConcisePDX();
case "/walkable-street-areas.html": return StreetAreas();
case "/must-see-and-do.html": return Attractions();
case "/must-hikes.html": return Hikes();
case "/vistas-and-overlooks.html": return Vistas();
case "/faqs.html": return Faqs();
case "/feedback-and-source.html": return FeedBack();
case "/middle-se-streets.html": return MiddleSouthEastStreets();
case "/sellwood-streets.html": return SellwoodStreets();
case "/northeast-streets.html": return NorthEastStreets();
case "/north-streets.html": return NorthStreets();
case "/stjohns-streets.html": return StJohnsStreets();
case "/northwest-streets.html": return NorthWestStreets();
case "/northwest-streets-sights.html": return NorthWestStreetsSights();
case "/southwest-streets.html": return SouthWestStreets();
case "/small-town-streets.html": return SmallTowns();
case "/washington-park.html": return WashingtonPark();
case "/east-willamette-valley.html": return EastWillametteValley();
case "/west-willamette-valley.html": return WestWillametteValley();
case "/east-county.html": return EastCounty();
case "/silverton.html": return Silverton();
case "/oregon-city.html": return OregonCity();
case "/oregon-city-sights.html": return OregonCitySights();
case "/west-willamette-valley-sights.html": return WestWillametteValleySights();
case "/east-willamette-valley-sights.html": return EastWillametteValleySights();
case "/mthood.html": return MountHood();
case "/oregon-coast.html": return OregonCoast();
case "/columbia-gorge.html": return ColumbiaGorge();
case "/washington-state.html": return WashingtonState();
case "/central-oregon.html": return CentralOregon();
case "/columbia-gorge-camping.html": return GorgeCamping();
case "/washington-hiking.html": return WashingtonHiking();
case "/driveable-vistas.html": return VistaDrives();
case "/walkable-vistas.html": return VistaWalks();
case "/hikeable-vistas.html": return VistaHikes();
case "/gorge-vistas.html": return GorgeVistas();
case "/remote-vistas.html": return RemoteVistas();
case "/vistas-north-pdx.html": return VistasNorthPDX();
case "/vistas-ne-pdx.html": return VistasNorthEastPDX();
case "/vistas-se-pdx.html": return VistasSouthEastPDX();
case "/gresham-vistas.html": return GreshamVistas();
case "/oregon-city-vistas.html": return OregonCityVistas();
case "/trimet.html": return TriMet();
case "/chinese-japanese-gardens.html": return ChineseJapaneseGardens();
default: return ConcisePDX();
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'concise-pdx',
theme: ThemeData(
primaryColor: navy,
),
home: ConcisePDX(),
home: page(),
);
}
}
@ -29,6 +126,10 @@ class ConcisePDX extends StatefulWidget {
}
class _ConcisePDXState extends State<ConcisePDX> {
void initState() {
html.window.history.pushState("","concise-pdx","/#/");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -44,39 +145,38 @@ class _ConcisePDXState extends State<ConcisePDX> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => StreetAreas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
child: cardOne('Walkable Streets With Restaurants and Bars'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => Attractions()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
child: cardOne('Must See and Do'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => Hikes()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Hikes()));
},
child: cardOne('Must Hikes'),
),
// cardOne('Anecdotal Recommendations'),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => Vistas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
child: cardOne('Vistas and Overlooks'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => Faqs()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Faqs()));
},
child: cardOne('FAQ\'s'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => FeedBack()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => FeedBack()));
},
child: cardOne('Feedback and Source'),
),

11
web/driveable-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>driveable-vistas</title>
<script id="route">driveable-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/east-county.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>east-county</title>
<script id="route">east-county.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>east-willamette-valley-sights</title>
<script id="route">east-willamette-valley-sights.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>east-willamette-valley</title>
<script id="route">east-willamette-valley.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'smalltowns.dart';
class EastCounty extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class EastCounty extends StatefulWidget {
}
class _EastCountyState extends State<EastCounty> {
void initState() {
html.window.history.pushState("","east-county","/east-county.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SmallTowns()));
},
);
}
),
title: Text('east county'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,8 +1,10 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'silverton.dart';
import 'oregoncity.dart';
import 'smalltowns.dart';
class EastWillametteValley extends StatefulWidget {
@override
@ -10,20 +12,29 @@ class EastWillametteValley extends StatefulWidget {
}
class _EastWillametteValleyState extends State<EastWillametteValley> {
void initState() {
html.window.history.pushState("","east-willamette-valley","/east-willamette-valley.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SmallTowns()));
},
);
}
),
title: Text('east willamette valley'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -34,14 +45,14 @@ class _EastWillametteValleyState extends State<EastWillametteValley> {
children: <Widget>[
cardTwo('Downtown Mt Angel is famous for German Food','https://www.google.com/maps/@45.0696714,-122.7991836,17z','downtown-mtangel'),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => Silverton()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Silverton()));
},
child: cardOne('Silverton (and sights)'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => OregonCity()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCity()));
},
child: cardOne('Oregon City (and sights)'),
),

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'attractions.dart';
class EastWillametteValleySights extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class EastWillametteValleySights extends StatefulWidget {
}
class _EastWillametteValleySightsState extends State<EastWillametteValleySights> {
void initState() {
html.window.history.pushState("","east-willamette-valley-sights","/east-willamette-valley-sights.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('east willamette valley sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -3,6 +3,8 @@ import 'defaults.dart';
import 'trimet.dart';
import 'chinesejapanesegardens.dart';
import 'card_templates.dart';
import 'concisepdx.dart';
import 'dart:html' as html;
class Faqs extends StatefulWidget {
@override
@ -10,10 +12,24 @@ class Faqs extends StatefulWidget {
}
class _FaqsState extends State<Faqs> {
void initState() {
html.window.history.pushState("","faqs","/faqs.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text(
'faqs',
),
@ -27,14 +43,14 @@ class _FaqsState extends State<Faqs> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => TriMet()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TriMet()));
},
child: cardOne('How do the buses, lightrail, and streetcars work?'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => ChineseJapaneseGardens()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ChineseJapaneseGardens()));
},
child: cardOne('What is the difference between Chinese Gardens and Japanese Gardens?'),
),

11
web/faqs.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>faqs</title>
<script id="route">faqs.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>feedback-and-source</title>
<script id="route">feedback-and-source.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'concisepdx.dart';
import 'dart:html' as html;
class FeedBack extends StatefulWidget {
@override
@ -8,11 +10,25 @@ class FeedBack extends StatefulWidget {
}
class _FeedBackState extends State<FeedBack> {
void initState() {
html.window.history.pushState("","feedback-and-source","/feedback-and-source.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text('feedback'),
centerTitle: true,
backgroundColor: navy,

11
web/gorge-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gorge-vistas</title>
<script id="route">gorge-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'columbiagorge.dart';
class GorgeCamping extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class GorgeCamping extends StatefulWidget {
}
class _GorgeCampingState extends State<GorgeCamping> {
void initState() {
html.window.history.pushState("","columbia-gorge-camping","/columbia-gorge-camping.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ColumbiaGorge()));
},
);
}
),
title: Text('gorge-camping'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class GorgeVistas extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class GorgeVistas extends StatefulWidget {
}
class _GorgeVistasState extends State<GorgeVistas> {
void initState() {
html.window.history.pushState("","gorge-vistas","/gorge-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('gorge-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/gresham-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gresham-vistas</title>
<script id="route">gresham-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class GreshamVistas extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class GreshamVistas extends StatefulWidget {
}
class _GreshamVistasState extends State<GreshamVistas> {
void initState() {
html.window.history.pushState("","gresham-vistas","/gresham-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('gresham-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/hikeable-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hikeable-vistas</title>
<script id="route">hikeable-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -2,6 +2,8 @@ import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'concisepdx.dart';
import 'dart:html' as html;
class Hikes extends StatefulWidget {
@override
@ -9,6 +11,10 @@ class Hikes extends StatefulWidget {
}
class _HikesState extends State<Hikes> {
void initState() {
html.window.history.pushState("","must-hikes","/must-hikes.html");
super.initState();
}
@override
Widget build(BuildContext context) {
@ -20,6 +26,16 @@ class _HikesState extends State<Hikes> {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text(
'hikes',
),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>middle-se-streets</title>
<script id="route">middle-se-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'streetareas.dart';
class MiddleSouthEastStreets extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class MiddleSouthEastStreets extends StatefulWidget {
}
class _MiddleSouthEastStreetsState extends State<MiddleSouthEastStreets> {
void initState() {
html.window.history.pushState("","middle-southeast-streets","/middle-se-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable middle se streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'attractions.dart';
class MountHood extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class MountHood extends StatefulWidget {
}
class _MountHoodState extends State<MountHood> {
void initState() {
html.window.history.pushState("","mthood","/mthood.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('MountHood'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/mthood.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>mthood</title>
<script id="route">mthood.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/must-hikes.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>must-hikes</title>
<script id="route">must-hikes.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/must-see-and-do.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>must-see-and-do.html</title>
<script id="route">must-see-and-do.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/north-streets.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>north-streets</title>
<script id="route">north-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>northeast-streets</title>
<script id="route">northeast-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'streetareas.dart';
class NorthEastStreets extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class NorthEastStreets extends StatefulWidget {
}
class _NorthEastStreetsState extends State<NorthEastStreets> {
void initState() {
html.window.history.pushState("","northeast-streets","/northeast-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable northeast streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'streetareas.dart';
class NorthStreets extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class NorthStreets extends StatefulWidget {
}
class _NorthStreetsState extends State<NorthStreets> {
void initState() {
html.window.history.pushState("","north-streets","/north-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable north streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>northwest-streets-sights</title>
<script id="route">northwest-streets-sights.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>northwest-streets</title>
<script id="route">northwest-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'northweststreetssights.dart';
import 'streetareas.dart';
class NorthWestStreets extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class NorthWestStreets extends StatefulWidget {
}
class _NorthWestStreetsState extends State<NorthWestStreets> {
void initState() {
html.window.history.pushState("","northwest-streets","/northwest-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable northwest streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -34,8 +45,8 @@ class _NorthWestStreetsState extends State<NorthWestStreets> {
cardTwo('NW 23rd from Burnside to Thurman','https://www.google.com/maps/@45.5295226,-122.6984339,16z','23rd'),
cardTwo('NW 21st from Burnside to Raleigh','https://www.google.com/maps/@45.5291143,-122.6945136,16z','21st'),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => NorthWestStreetsSights()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreetsSights()));
},
child: cardOne('As long as you\'re in NorthWest Portland.'),
),

View File

@ -1,8 +1,10 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'washingtonpark.dart';
import 'northweststreets.dart';
class NorthWestStreetsSights extends StatefulWidget {
@override
@ -10,20 +12,29 @@ class NorthWestStreetsSights extends StatefulWidget {
}
class _NorthWestStreetsSightsState extends State<NorthWestStreetsSights> {
void initState() {
html.window.history.pushState("","northwest-streets-sights","/northwest-streets-sights.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreets()));
},
);
}
),
title: Text('northwest-pdx-sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -41,8 +52,8 @@ class _NorthWestStreetsSightsState extends State<NorthWestStreetsSights> {
'providence-park-map'
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
},
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at WashingtonPark.'),
),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>oregon-city-sights</title>
<script id="route">oregon-city-sights.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>oregon-city-vistas</title>
<script id="route">oregon-city-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/oregon-city.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>oregon-city</title>
<script id="route">oregon-city.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/oregon-coast.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>oregon-coast</title>
<script id="route">oregon-coast.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'oregoncitysights.dart';
import 'eastwillamettevalley.dart';
class OregonCity extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class OregonCity extends StatefulWidget {
}
class _OregonCityState extends State<OregonCity> {
void initState() {
html.window.history.pushState("","oregon-city","/oregon-city.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
},
);
}
),
title: Text('walkable streets in Oregon City'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'oregoncity.dart';
class OregonCitySights extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class OregonCitySights extends StatefulWidget {
}
class _OregonCitySightsState extends State<OregonCitySights> {
void initState() {
html.window.history.pushState("","oregon-city-sights","/oregon-city-sights.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCity()));
},
);
}
),
title: Text('oregon-city-sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -2,6 +2,8 @@ import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class OregonCityVistas extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class OregonCityVistas extends StatefulWidget {
}
class _OregonCityVistasState extends State<OregonCityVistas> {
void initState() {
html.window.history.pushState("","oregon-city-vistas","/oregon-city-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('oregon-city-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'attractions.dart';
class OregonCoast extends StatefulWidget {
@override
@ -11,20 +13,29 @@ class OregonCoast extends StatefulWidget {
class _OregonCoastState extends State<OregonCoast> {
String _coastString = 'These is not a single State Park Campground on the Oregon Coast that is not Amazing!';
void initState() {
html.window.history.pushState("","oregon-coast","/oregon-coast.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('OregonCoast'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/remote-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>remote-vistas</title>
<script id="route">remote-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class RemoteVistas extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class RemoteVistas extends StatefulWidget {
}
class _RemoteVistasState extends State<RemoteVistas> {
void initState() {
html.window.history.pushState("","remote-vistas","/remote-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('remote-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/sellwood-streets.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sellwood-streets</title>
<script id="route">sellwood-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'streetareas.dart';
class SellwoodStreets extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class SellwoodStreets extends StatefulWidget {
}
class _SellwoodStreetsState extends State<SellwoodStreets> {
void initState() {
html.window.history.pushState("","sellwood-streets","/sellwood-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable sellwood streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'eastwillamettevalley.dart';
class Silverton extends StatefulWidget {
@override
@ -9,20 +11,29 @@ class Silverton extends StatefulWidget {
}
class _SilvertonState extends State<Silverton> {
void initState() {
html.window.history.pushState("","silverton","/silverton.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
},
);
}
),
title: Text('walkable streets in Silverton'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/silverton.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>silverton</title>
<script id="route">silverton.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>small-town-streets</title>
<script id="route">small-town-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,9 +1,11 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'eastwillamettevalley.dart';
import 'westwillamettevalley.dart';
import 'eastcounty.dart';
import 'streetareas.dart';
class SmallTowns extends StatefulWidget {
@override
@ -11,20 +13,29 @@ class SmallTowns extends StatefulWidget {
}
class _SmallTownsState extends State<SmallTowns> {
void initState() {
html.window.history.pushState("","small-town-streets","/small-town-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
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);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -34,20 +45,20 @@ class _SmallTownsState extends State<SmallTowns> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
},
child: cardOne('East Willamette Valley'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WestWillametteValley()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WestWillametteValley()));
},
child: cardOne('West Willamette Valley'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => EastCounty()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastCounty()));
},
child: cardOne('East County'),
),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>southwest-streets</title>
<script id="route">southwest-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'streetareas.dart';
class SouthWestStreets extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class SouthWestStreets extends StatefulWidget {
}
class _SouthWestStreetsState extends State<SouthWestStreets> {
void initState() {
html.window.history.pushState("","southwest-streets","/southwest-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable sw streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/stjohns-streets.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>stjohns-streets</title>
<script id="route">stjohns-streets.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'streetareas.dart';
class StJohnsStreets extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class StJohnsStreets extends StatefulWidget {
}
class _StJohnsStreetsState extends State<StJohnsStreets> {
void initState() {
html.window.history.pushState("","stjohns-streets","/stjohns-streets.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StreetAreas()));
},
);
}
),
title: Text('walkable stjohns streets\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,4 +1,5 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'middlesoutheaststreets.dart';
import 'northeaststreets.dart';
@ -9,6 +10,7 @@ import 'sellwoodstreets.dart';
import 'smalltowns.dart';
import 'southwest.dart';
import 'card_templates.dart';
import 'concisepdx.dart';
class StreetAreas extends StatefulWidget {
@override
@ -16,10 +18,24 @@ class StreetAreas extends StatefulWidget {
}
class _StreetAreasState extends State<StreetAreas> {
void initState() {
html.window.history.pushState("","walkable-street-areas","/walkable-street-areas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text(
'walkable-street-areas\nwith bars-restaurants',
),
@ -33,50 +49,50 @@ class _StreetAreasState extends State<StreetAreas> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => MiddleSouthEastStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => MiddleSouthEastStreets()));
},
child: cardOne('Middle SouthEast'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => SellwoodStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SellwoodStreets()));
},
child: cardOne('Sellwood'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => NorthEastStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthEastStreets()));
},
child: cardOne('NorthEast'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => NorthStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthStreets()));
},
child: cardOne('North'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => StJohnsStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StJohnsStreets()));
},
child: cardOne('St John\'s'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => NorthWestStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreets()));
},
child: cardOne('NorthWest'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => SouthWestStreets()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SouthWestStreets()));
},
child: cardOne('SouthWest'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => SmallTowns()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SmallTowns()));
},
child: cardOne('Small Towns in the Area'),
),

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'faqs.dart';
class TriMet extends StatefulWidget {
@override
@ -8,6 +10,10 @@ class TriMet extends StatefulWidget {
}
class _TriMetState extends State<TriMet> {
void initState() {
html.window.history.pushState("","trimet","/trimet.html");
super.initState();
}
@override
Widget build(BuildContext context) {
@ -20,16 +26,21 @@ class _TriMetState extends State<TriMet> {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Faqs()));
},
);
}
),
title: Text('trimet'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

11
web/trimet.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>trimet</title>
<script id="route">trimet.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistaDrives extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistaDrives extends StatefulWidget {
}
class _VistaDrivesState extends State<VistaDrives> {
void initState() {
html.window.history.pushState("","driveable-vistas","/driveable-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('driveable vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistaHikes extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistaHikes extends StatefulWidget {
}
class _VistaHikesState extends State<VistaHikes> {
void initState() {
html.window.history.pushState("","hikeable-vistas","/hikeable-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('hikeable vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vistas-and-overlooks</title>
<script id="route">vistas-and-overlooks.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/vistas-ne-pdx.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vistas-ne-pdx</title>
<script id="route">vistas-ne-pdx.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/vistas-north-pdx.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vistas-north-pdx</title>
<script id="route">vistas-north-pdx.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/vistas-se-pdx.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vistas-se-pdx</title>
<script id="route">vistas-se-pdx.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -4,13 +4,15 @@ import 'card_templates.dart';
import 'vistadrives.dart';
import 'vistawalks.dart';
import 'vistahikes.dart';
import 'gorgevistas.dart';
import 'remotevistas.dart';
import 'vistasnorthpdx.dart';
import 'vistasnortheastpdx.dart';
import 'vistassoutheastpdx.dart';
import 'greshamvistas.dart';
import 'oregoncityvistas.dart';
import 'remotevistas.dart';
import 'gorgevistas.dart';
import 'concisepdx.dart';
import 'dart:html' as html;
class Vistas extends StatefulWidget {
@override
@ -18,12 +20,26 @@ class Vistas extends StatefulWidget {
}
class _VistasState extends State<Vistas> {
void initState() {
html.window.history.pushState("","vistas-and-overlooks","/vistas-and-overlooks.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ConcisePDX()));
},
);
}
),
title: Text(
'walkable-street-areas\nwith bars-restaurants',
'vistas-and-overlooks',
),
centerTitle: true,
backgroundColor: navy,
@ -35,62 +51,62 @@ class _VistasState extends State<Vistas> {
child: Column(
children: <Widget>[
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistaDrives()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistaDrives()));
},
child: cardOne('Drive to the Top'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistaWalks()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistaWalks()));
},
child: cardOne('Walk to the Top'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistaHikes()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistaHikes()));
},
child: cardOne('A Real Hike to the Top'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => GorgeVistas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => GorgeVistas()));
},
child: cardOne('Gorge'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => RemoteVistas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => RemoteVistas()));
},
child: cardOne('Remote'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistasNorthPDX()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasNorthPDX()));
},
child: cardOne('North Portland'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistasNorthEastPDX()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasNorthEastPDX()));
},
child: cardOne('NE Portland'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => VistasSouthEastPDX()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasSouthEastPDX()));
},
child: cardOne('SE Portland'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => GreshamVistas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => GreshamVistas()));
},
child: cardOne('Gresham'),
),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => OregonCityVistas()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCityVistas()));
},
child: cardOne('Oregon City'),
),

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistasNorthEastPDX extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistasNorthEastPDX extends StatefulWidget {
}
class _VistasNorthEastPDXState extends State<VistasNorthEastPDX> {
void initState() {
html.window.history.pushState("","vistas-ne-pdx","/vistas-ne-pdx.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('ne-pdx-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistasNorthPDX extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistasNorthPDX extends StatefulWidget {
}
class _VistasNorthPDXState extends State<VistasNorthPDX> {
void initState() {
html.window.history.pushState("","vistas-north-pdx","/vistas-north-pdx.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('north-pdx-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistasSouthEastPDX extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistasSouthEastPDX extends StatefulWidget {
}
class _VistasSouthEastPDXState extends State<VistasSouthEastPDX> {
void initState() {
html.window.history.pushState("","vistas-se-pdx","/vistas-se-pdx.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('se-pdx-vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,9 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'dart:html' as html;
import 'vistas.dart';
class VistaWalks extends StatefulWidget {
@override
@ -8,20 +11,29 @@ class VistaWalks extends StatefulWidget {
}
class _VistaWalksState extends State<VistaWalks> {
void initState() {
html.window.history.pushState("","walkable-vistas","/walkable-vistas.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Vistas()));
},
);
}
),
title: Text('walkable vistas'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>walkable-street-areas</title>
<script id="route">walkable-street-areas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/walkable-vistas.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>walkable-vistas</title>
<script id="route">walkable-vistas.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>washington-hiking</title>
<script id="route">washington-hiking.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/washington-park.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>washington-park</title>
<script id="route">washington-park.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

11
web/washington-state.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>washington-state</title>
<script id="route">washington-state.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'washingtonstate.dart';
class WashingtonHiking extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class WashingtonHiking extends StatefulWidget {
}
class _WashingtonHikingState extends State<WashingtonHiking> {
void initState() {
html.window.history.pushState("","washington-hiking","/washington-hiking.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonState()));
},
);
}
),
title: Text('washington-hiking'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,6 +1,10 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'northweststreetssights.dart';
import 'attractions.dart';
class WashingtonPark extends StatefulWidget {
@override
@ -8,6 +12,10 @@ class WashingtonPark extends StatefulWidget {
}
class _WashingtonParkState extends State<WashingtonPark> {
void initState() {
html.window.history.pushState("","washington-park","/washington-park.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -16,12 +24,7 @@ class _WashingtonParkState extends State<WashingtonPark> {
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -35,6 +38,18 @@ class _WashingtonParkState extends State<WashingtonPark> {
roseGarden(),
hoytArboretum(),
pittockMansion(),
InkWell(
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreetsSights()));
},
child: cardOne('(Back to as long as you are in NW Portland)'),
),
InkWell(
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
child: cardOne('(Back to must see and do'),
),
],
),
),

View File

@ -1,8 +1,10 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'washingtonhiking.dart';
import 'attractions.dart';
class WashingtonState extends StatefulWidget {
@override
@ -10,21 +12,29 @@ class WashingtonState extends StatefulWidget {
}
class _WashingtonStateState extends State<WashingtonState> {
void initState() {
html.window.history.pushState("","washington-state","/washington-state.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('WashingtonState'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,
@ -39,8 +49,8 @@ class _WashingtonStateState extends State<WashingtonState> {
hanfordReachNationalMonument(),
channeledScablands(),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonHiking()));
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonHiking()));
},
child: cardOne('Hiking in Washington State.'),
),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>west-willamette-valley-sights</title>
<script id="route">west-willamette-valley-sights.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>west-willamette-valley</title>
<script id="route">west-willamette-valley.html</script>
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>

View File

@ -1,6 +1,8 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'card_templates.dart';
import 'smalltowns.dart';
class WestWillametteValley extends StatefulWidget {
@override
@ -8,20 +10,29 @@ class WestWillametteValley extends StatefulWidget {
}
class _WestWillametteValleyState extends State<WestWillametteValley> {
void initState() {
html.window.history.pushState("","west-willamette-valley","/west-willamette-valley.html");
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('walkable small-towns\nwith bars-restaurants'),
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SmallTowns()));
},
);
}
),
title: Text('west willamette valley'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,

View File

@ -1,7 +1,9 @@
import 'package:flutter_web/material.dart';
import 'dart:html' as html;
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'attractions.dart';
class WestWillametteValleySights extends StatefulWidget {
@override
@ -9,6 +11,10 @@ class WestWillametteValleySights extends StatefulWidget {
}
class _WestWillametteValleySightsState extends State<WestWillametteValleySights> {
void initState() {
html.window.history.pushState("","west-willamette-valley-sights","/west-willamette-valley-sights.html");
super.initState();
}
@override
Widget build(BuildContext context) {
String _wineTastingString = 'Newberg-Dundee is Oregon\'s biggest wine tasting region.';
@ -16,16 +22,21 @@ class _WestWillametteValleySightsState extends State<WestWillametteValleySights>
_wineTastingString += ' of drunk jerks in Newberg at 1 or 2 am.';
return Scaffold(
appBar: AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Attractions()));
},
);
}
),
title: Text('west willamette valley sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
Home(context),
],
),
backgroundColor: peacockBlue,