mirror of
https://github.com/TrentSPalmer/concise-pdx.git
synced 2024-11-21 20:51:29 -08:00
add washingtonstate.dart
This commit is contained in:
parent
1be4b81f17
commit
8ce1ed4dc6
@ -1,11 +1,11 @@
|
|||||||
import 'package:flutter_web/material.dart';
|
import 'package:flutter_web/material.dart';
|
||||||
import 'defaults.dart';
|
import 'defaults.dart';
|
||||||
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';
|
import 'columbiagorge.dart';
|
||||||
import 'oregoncoast.dart';
|
import 'oregoncoast.dart';
|
||||||
|
import 'washingtonstate.dart';
|
||||||
import 'eastwillamettevalleysights.dart';
|
import 'eastwillamettevalleysights.dart';
|
||||||
import 'westwillamettevalleysights.dart';
|
import 'westwillamettevalleysights.dart';
|
||||||
|
|
||||||
@ -31,7 +31,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>[
|
||||||
mountSaintHelens(),
|
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await Navigator.push(context, MaterialPageRoute(builder: (context) => WestWillametteValleySights()));
|
await Navigator.push(context, MaterialPageRoute(builder: (context) => WestWillametteValleySights()));
|
||||||
@ -68,6 +67,12 @@ class _AttractionsState extends State<Attractions> {
|
|||||||
},
|
},
|
||||||
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at 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()));
|
||||||
|
},
|
||||||
|
child: cardOne('Sight-See in Washington State.'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -19,7 +19,11 @@ Card infoCard(String leftText,String infoUrl,String infoUrlName) {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 8,
|
flex: 1,
|
||||||
|
child: Card(),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: 7,
|
||||||
child: Text(
|
child: Text(
|
||||||
leftText,
|
leftText,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
@ -430,3 +430,53 @@ Card tillamookAirMuseum() {
|
|||||||
'tillamook-air-museum-map'
|
'tillamook-air-museum-map'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Card olympicNationalPark() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Olympic_National_Park',
|
||||||
|
'olympic-national-park',
|
||||||
|
'Visit Olympic National Park.',
|
||||||
|
'https://www.google.com/maps/@47.6751176,-123.6015532,10z',
|
||||||
|
'olympic-national-park-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card mountRanierNationalPark() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Mount_Rainier_National_Park',
|
||||||
|
'mount-ranier-national-park',
|
||||||
|
'Visit Mt Ranier National Park.',
|
||||||
|
'https://www.google.com/maps/@46.9068896,-121.7539242,10z',
|
||||||
|
'mount-ranier-national-park-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card hanfordReachNationalMonument() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://www.youtube.com/watch?v=0iyM04F4exs',
|
||||||
|
'hanford-reach-national-monument',
|
||||||
|
'Hike the White Bluffs above Hanford Reach.',
|
||||||
|
'https://www.google.com/maps/@46.6780725,-119.4390818,15z',
|
||||||
|
'hanford-reach-national-monument-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card channeledScablands() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'http://hugefloods.com/Scablands.html',
|
||||||
|
'channeled-scablands',
|
||||||
|
'Visit the Channeled Scablands',
|
||||||
|
'https://www.google.com/maps/@46.975,-119.196389,17z',
|
||||||
|
'channeled-scablands-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card grandCouleeDam() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Grand_Coulee_Dam',
|
||||||
|
'grand-coulee-dam',
|
||||||
|
'Visit the Grand Coulee Dam',
|
||||||
|
'https://www.google.com/maps/@47.955833,-118.981667,14z',
|
||||||
|
'grand-coulee-dam-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
41
web/washingtonhiking.dart
Normal file
41
web/washingtonhiking.dart
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
import 'package:flutter_web/material.dart';
|
||||||
|
import 'defaults.dart';
|
||||||
|
import 'card_templates.dart';
|
||||||
|
|
||||||
|
class WashingtonHiking extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_WashingtonHikingState createState() => _WashingtonHikingState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _WashingtonHikingState extends State<WashingtonHiking> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text('washington-hiking'),
|
||||||
|
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>[
|
||||||
|
infoCard('Hike at the Washington Coast.','https://www.oregonhikers.org/field_guide/Washington_Coast_Hikes','a'),
|
||||||
|
infoCard('Hike South West Washington.','https://www.oregonhikers.org/field_guide/Southwest_Washington_Hikes','b'),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
53
web/washingtonstate.dart
Normal file
53
web/washingtonstate.dart
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import 'package:flutter_web/material.dart';
|
||||||
|
import 'defaults.dart';
|
||||||
|
import 'card_templates.dart';
|
||||||
|
import 'prebuildcards.dart';
|
||||||
|
import 'washingtonhiking.dart';
|
||||||
|
|
||||||
|
class WashingtonState extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_WashingtonStateState createState() => _WashingtonStateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _WashingtonStateState extends State<WashingtonState> {
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text('WashingtonState'),
|
||||||
|
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>[
|
||||||
|
mountSaintHelens(),
|
||||||
|
olympicNationalPark(),
|
||||||
|
mountRanierNationalPark(),
|
||||||
|
hanfordReachNationalMonument(),
|
||||||
|
channeledScablands(),
|
||||||
|
InkWell(
|
||||||
|
onTap: () async {
|
||||||
|
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonHiking()));
|
||||||
|
},
|
||||||
|
child: cardOne('Hiking in Washington State.'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user