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>

23