mirror of
https://github.com/TrentSPalmer/concise-pdx.git
synced 2024-11-24 21:41:31 -08:00
add washingtonpark.dart
This commit is contained in:
parent
2dbf60dd18
commit
3ced6e1fec
@ -1,6 +1,8 @@
|
|||||||
import 'package:flutter_web/material.dart';
|
import 'package:flutter_web/material.dart';
|
||||||
import 'defaults.dart';
|
import 'defaults.dart';
|
||||||
import 'prebuildcards.dart';
|
import 'prebuildcards.dart';
|
||||||
|
import 'card_templates.dart';
|
||||||
|
import 'washingtonpark.dart';
|
||||||
|
|
||||||
class Attractions extends StatefulWidget {
|
class Attractions extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
@ -29,6 +31,12 @@ class _AttractionsState extends State<Attractions> {
|
|||||||
mountHood(),
|
mountHood(),
|
||||||
mountSaintHelens(),
|
mountSaintHelens(),
|
||||||
oregonCoast(),
|
oregonCoast(),
|
||||||
|
InkWell(
|
||||||
|
onTap: () async {
|
||||||
|
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
|
||||||
|
},
|
||||||
|
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at WashingtonPark.'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -2,6 +2,7 @@ import 'package:flutter_web/material.dart';
|
|||||||
import 'defaults.dart';
|
import 'defaults.dart';
|
||||||
import 'card_templates.dart';
|
import 'card_templates.dart';
|
||||||
import 'prebuildcards.dart';
|
import 'prebuildcards.dart';
|
||||||
|
import 'washingtonpark.dart';
|
||||||
|
|
||||||
class NorthWestStreets extends StatefulWidget {
|
class NorthWestStreets extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
@ -32,13 +33,6 @@ class _NorthWestStreetsState extends State<NorthWestStreets> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
macleayParkPittockMansion(),
|
macleayParkPittockMansion(),
|
||||||
convenienceCardOne(
|
|
||||||
'https://en.wikipedia.org/wiki/Washington_Park_(Portland,_Oregon)',
|
|
||||||
'washington-park',
|
|
||||||
'This area of town is convenient for the Zoo, Rose Garden, and Japanese Garden',
|
|
||||||
'https://www.google.com/maps/@45.515833,-122.7075,15z',
|
|
||||||
'washington-park-map'
|
|
||||||
),
|
|
||||||
convenienceCardOne(
|
convenienceCardOne(
|
||||||
'https://en.wikipedia.org/wiki/Providence_Park',
|
'https://en.wikipedia.org/wiki/Providence_Park',
|
||||||
'providence-park',
|
'providence-park',
|
||||||
@ -48,6 +42,12 @@ class _NorthWestStreetsState extends State<NorthWestStreets> {
|
|||||||
),
|
),
|
||||||
cardTwo('NW 23rd, Burnside to Thurman','https://www.google.com/maps/@45.5295226,-122.6984339,16z','23rd'),
|
cardTwo('NW 23rd, Burnside to Thurman','https://www.google.com/maps/@45.5295226,-122.6984339,16z','23rd'),
|
||||||
cardTwo('NW 21st, Burnside to Raleigh','https://www.google.com/maps/@45.5291143,-122.6945136,16z','21st'),
|
cardTwo('NW 21st, Burnside to Raleigh','https://www.google.com/maps/@45.5291143,-122.6945136,16z','21st'),
|
||||||
|
InkWell(
|
||||||
|
onTap: () async {
|
||||||
|
await Navigator.push(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
|
||||||
|
},
|
||||||
|
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at WashingtonPark.'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -290,3 +290,53 @@ Card willametteFallsViewPoint() {
|
|||||||
'willamette-falls-map'
|
'willamette-falls-map'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Card oregonZoo() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Oregon_Zoo',
|
||||||
|
'oregon-zoo',
|
||||||
|
'Visit Oregon Zoo in Washington Park',
|
||||||
|
'https://www.google.com/maps/@45.5098414,-122.7167163,18z',
|
||||||
|
'oregon-zoo-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card roseGarden() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/International_Rose_Test_Garden',
|
||||||
|
'rose-garden',
|
||||||
|
'Visit International Rose Test Garden in Washington Park',
|
||||||
|
'https://www.google.com/maps/@45.5191,-122.7054,18z',
|
||||||
|
'rose-garden-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card peninsulaPark() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://www.pdxmonthly.com/articles/2018/5/22/the-hidden-history-of-north-portland-s-flower-powered-peninsula-park',
|
||||||
|
'peninsula-park',
|
||||||
|
'Visit the Rose Garden in Peninsula Park',
|
||||||
|
'https://www.google.com/maps/@45.5680077,-122.6736269,17z',
|
||||||
|
'peninsula-park-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card hoytArboretum() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Hoyt_Arboretum',
|
||||||
|
'hoyt-arboretum',
|
||||||
|
'Visit Hoyt Arboretum in Washington Park',
|
||||||
|
'https://www.google.com/maps/@45.51679,-122.716,17z',
|
||||||
|
'hoyt-arboretum-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card pittockMansion() {
|
||||||
|
return convenienceCardOne(
|
||||||
|
'https://en.wikipedia.org/wiki/Pittock_Mansion',
|
||||||
|
'pittock-mansion',
|
||||||
|
'Visit Pittock Mansion near Washington Park',
|
||||||
|
'https://www.google.com/maps/@45.525,-122.716389,17z',
|
||||||
|
'pittock-mansion-map'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
39
web/washingtonpark.dart
Normal file
39
web/washingtonpark.dart
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import 'package:flutter_web/material.dart';
|
||||||
|
import 'defaults.dart';
|
||||||
|
import 'prebuildcards.dart';
|
||||||
|
|
||||||
|
class WashingtonPark extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_WashingtonParkState createState() => _WashingtonParkState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _WashingtonParkState extends State<WashingtonPark> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text('washingtonpark'),
|
||||||
|
centerTitle: true,
|
||||||
|
backgroundColor: navy,
|
||||||
|
actions: <Widget>[
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.home),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).popUntil((route) => route.isFirst);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
backgroundColor: peacockBlue,
|
||||||
|
body: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
oregonZoo(),
|
||||||
|
japaneseGarden(),
|
||||||
|
roseGarden(),
|
||||||
|
hoytArboretum(),
|
||||||
|
pittockMansion(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user