add columbiagorge.dart gorgecamping.dart

This commit is contained in:
Trent Palmer 2019-09-03 18:08:54 -07:00
parent 3e13dd3e2c
commit ae6f4728ac
4 changed files with 171 additions and 12 deletions

View File

@ -4,6 +4,7 @@ import 'prebuildcards.dart';
import 'card_templates.dart'; import 'card_templates.dart';
import 'washingtonpark.dart'; import 'washingtonpark.dart';
import 'mounthood.dart'; import 'mounthood.dart';
import 'columbiagorge.dart';
class Attractions extends StatefulWidget { class Attractions extends StatefulWidget {
@override @override
@ -27,8 +28,6 @@ class _AttractionsState extends State<Attractions> {
padding: EdgeInsets.only(bottom: 6.0,), padding: EdgeInsets.only(bottom: 6.0,),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
columbiaGorge(),
multnomahFalls(),
mountSaintHelens(), mountSaintHelens(),
oregonCoast(), oregonCoast(),
InkWell( InkWell(
@ -37,6 +36,12 @@ class _AttractionsState extends State<Attractions> {
}, },
child: cardOne('Camp, Hike, or Sight-See on Mt Hood.'), child: cardOne('Camp, Hike, or Sight-See on Mt Hood.'),
), ),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => ColumbiaGorge()));
},
child: cardOne('Camp, Hike, Cruise, or Sight-See in the Columbia River Gorge.'),
),
InkWell( InkWell(
onTap: () async { onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark())); await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark()));

60
web/columbiagorge.dart Normal file
View File

@ -0,0 +1,60 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'gorgecamping.dart';
class ColumbiaGorge extends StatefulWidget {
@override
_ColumbiaGorgeState createState() => _ColumbiaGorgeState();
}
class _ColumbiaGorgeState extends State<ColumbiaGorge> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('ColumbiaGorge'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
convenienceCardOne(
'https://en.wikipedia.org/wiki/Historic_Columbia_River_Highway',
'historic-highway',
'Drive the Scenic Historic Columbia River Highway',
'https://www.google.com/maps/@45.5483301,-122.1818084,14z',
'historic-highway-map'
),
multnomahFalls(),
dogMountain(),
angelsRest(),
infoCard('More Hikes in the Columbia River Gorge.','https://www.oregonhikers.org/field_guide/Columbia_River_Gorge_Hikes','a'),
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()));
},
child: cardOne('Camping in the Columbia River Gorge.'),
),
],
),
),
),
);
}
}

104
web/gorgecamping.dart Normal file
View File

@ -0,0 +1,104 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
import 'gorgecamping.dart';
class GorgeCamping extends StatefulWidget {
@override
_GorgeCampingState createState() => _GorgeCampingState();
}
class _GorgeCampingState extends State<GorgeCamping> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('gorge-camping'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
convenienceCardOne(
'https://oregonstateparks.org/index.cfm?do=parkPage.dsp_parkPage&parkId=105',
'ainsworth',
'Camp at Ainsworth State Park Oregon',
'https://www.google.com/maps/@45.597435,-122.0518624,17z',
'ainsworth-map'
),
convenienceCardOne(
'https://oregonstateparks.org/index.cfm?do=parkPage.dsp_parkPage&parkId=123',
'viento',
'Camp at Viento State Park Oregon',
'https://www.google.com/maps/@45.6974966,-121.6672281,17z',
'viento-map'
),
convenienceCardOne(
'https://oregonstateparks.org/index.cfm?do=parkPage.dsp_parkPage&parkId=118',
'memaloose',
'Camp at Memaloose State Park Oregon',
'https://www.google.com/maps/@45.6967538,-121.3429743,17z',
'memaloose-map'
),
convenienceCardOne(
'https://oregonstateparks.org/index.cfm?do=parkPage.dsp_parkPage&parkId=29',
'deschutes',
'Camp at Deschutes River State Park Oregon',
'https://www.google.com/maps/@45.6319205,-120.9064152,17z',
'deschutes-map'
),
convenienceCardOne(
'https://www.fs.usda.gov/recarea/crgnsa/recreation/camping-cabins/recarea/?recid=29906&actid=29',
'eagle-creek',
'Camp at Eagle Creek Federal Campground Oregon',
'https://www.google.com/maps/@45.642244,-121.925284,17z',
'eagle-creek-map'
),
convenienceCardOne(
'https://www.fs.usda.gov/recarea/crgnsa/recreation/camping-cabins/recarea/?recid=30008&actid=29',
'wyeth',
'Camp at Wyeth Federal Campground Oregon',
'https://www.google.com/maps/@45.690305,-121.772188,17z',
'wyeth-map'
),
convenienceCardOne(
'https://parks.state.wa.us/474/Beacon-Rock',
'beacon-rock',
'Camp at Beacon Rock State Park Washington',
'https://www.google.com/maps/@45.6287669,-122.0291639,15z',
'beacon-rock-map'
),
convenienceCardOne(
'https://parks.state.wa.us/489/Columbia-Hills',
'columbia-hills',
'Camp at Columbia Hills State Park Washington',
'https://www.google.com/maps/@45.643124,-121.1039948,15z',
'columbia-hills-map'
),
convenienceCardOne(
'https://parks.state.wa.us/543/Maryhill',
'mary-hill',
'Camp at Mary Hill State Park Washington',
'https://www.google.com/maps/@45.6819927,-120.8316575,15z',
'mary-hill-map'
),
],
),
),
),
);
}
}

View File

@ -221,16 +221,6 @@ Card macleayParkPittockMansion() {
); );
} }
Card columbiaGorge() {
return convenienceCardOne(
'https://en.wikipedia.org/wiki/Columbia_River_Gorge',
'columbia-river-gorge',
'Hike, SightSee, Cruise, or WindSurf the Columbia River Gorge',
'https://www.google.com/maps/@45.704722,-121.791667,11z',
'columbia-river-gorge-map'
);
}
Card mountSaintHelens() { Card mountSaintHelens() {
return convenienceCardOne( return convenienceCardOne(
'https://en.wikipedia.org/wiki/Mount_St._Helens', 'https://en.wikipedia.org/wiki/Mount_St._Helens',