add *willamettevalleysights.dart

This commit is contained in:
Trent Palmer 2019-09-04 11:56:46 -07:00
parent 23a91a91da
commit c67b533a6c
5 changed files with 136 additions and 7 deletions

View File

@ -5,6 +5,8 @@ import 'card_templates.dart';
import 'washingtonpark.dart'; import 'washingtonpark.dart';
import 'mounthood.dart'; import 'mounthood.dart';
import 'columbiagorge.dart'; import 'columbiagorge.dart';
import 'eastwillamettevalleysights.dart';
import 'westwillamettevalleysights.dart';
class Attractions extends StatefulWidget { class Attractions extends StatefulWidget {
@override @override
@ -30,6 +32,18 @@ class _AttractionsState extends State<Attractions> {
children: <Widget>[ children: <Widget>[
mountSaintHelens(), mountSaintHelens(),
oregonCoast(), oregonCoast(),
InkWell(
onTap: () async {
await Navigator.push(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()));
},
child: cardOne('Sight-See in the East Willamette Valley.'),
),
InkWell( InkWell(
onTap: () async { onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => MountHood())); await Navigator.push(context, MaterialPageRoute(builder: (context) => MountHood()));

View File

@ -0,0 +1,49 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
class EastWillametteValleySights extends StatefulWidget {
@override
_EastWillametteValleySightsState createState() => _EastWillametteValleySightsState();
}
class _EastWillametteValleySightsState extends State<EastWillametteValleySights> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
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);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
silverFalls(),
oregonGarden(),
convenienceCardOne(
'https://oregonstateparks.org/index.cfm?do=parkPage.dsp_parkPage&parkId=151',
'silver-falls',
'Camp at Silver Falls State Park Oregon',
'https://www.google.com/maps/@44.87752,-122.65513,15z',
'silver-falls-map'
),
],
),
),
),
);
}
}

View File

@ -380,3 +380,23 @@ Card lostLake() {
'lost-lake-map' 'lost-lake-map'
); );
} }
Card spruceGoose() {
return convenienceCardOne(
'https://en.wikipedia.org/wiki/Evergreen_Aviation_%26_Space_Museum',
'spruce-goose',
'McMinnville is convenient for the Spruce Goose and Evergreen Aviation Museum',
'https://www.google.com/maps/@45.2031571,-123.1454622,17z',
'spruce-goose-map'
);
}
Card oregonGarden() {
return convenienceCardOne(
'https://en.wikipedia.org/wiki/Oregon_Garden',
'oregon-garden',
'Silverton is convenient for a visit to Oregon Garden',
'https://www.google.com/maps/@44.9927687,-122.7935883,16z',
'oregon-garden-map'
);
}

View File

@ -32,13 +32,7 @@ class _SilvertonState extends State<Silverton> {
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
silverFalls(), silverFalls(),
convenienceCardOne( oregonGarden(),
'https://en.wikipedia.org/wiki/Oregon_Garden',
'oregon-garden',
'Silverton is convenient for a visit to Oregon Garden',
'https://www.google.com/maps/@44.9927687,-122.7935883,16z',
'oregon-garden-map'
),
cardTwo('Water and First in Downtown Silverton','https://www.google.com/maps/@45.0052266,-122.7825282,17z','water-first'), cardTwo('Water and First in Downtown Silverton','https://www.google.com/maps/@45.0052266,-122.7825282,17z','water-first'),
], ],
), ),

View File

@ -0,0 +1,52 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
class WestWillametteValleySights extends StatefulWidget {
@override
_WestWillametteValleySightsState createState() => _WestWillametteValleySightsState();
}
class _WestWillametteValleySightsState extends State<WestWillametteValleySights> {
@override
Widget build(BuildContext context) {
String _wineTastingString = 'Newberg-Dundee is Oregon\'s biggest wine tasting region.';
_wineTastingString += ' But be careful out there, because no one wants to deal with a bunch';
_wineTastingString += ' of drunk jerks in Newberg at 1 or 2 am.';
return Scaffold(
appBar: AppBar(
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);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
cardThree(_wineTastingString),
convenienceCardOne(
'https://www.oregonwines.com/wineries/by-region/dundee-newberg-wineries/',
'newberg-dundee-wine',
'Some Newberg-Dundee Wine Tasting Info',
'https://www.google.com/maps/@45.3046966,-123.0034138,12z',
'newberg-dundee-wine-map'
),
spruceGoose(),
],
),
),
),
);
}
}