concise-pdx/web/oregoncitysights.dart

69 lines
2.3 KiB
Dart
Raw Normal View History

2019-09-04 16:21:52 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-09-04 16:21:52 -07:00
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
2019-11-04 01:21:25 -08:00
import 'oregoncity.dart';
2019-09-04 16:21:52 -07:00
class OregonCitySights extends StatefulWidget {
@override
_OregonCitySightsState createState() => _OregonCitySightsState();
}
class _OregonCitySightsState extends State<OregonCitySights> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","oregon-city-sights","/oregon-city-sights.html");
super.initState();
}
2019-09-04 16:21:52 -07:00
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
2019-11-04 01:21:25 -08:00
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCity()));
},
);
}
),
2019-09-04 16:21:52 -07:00
title: Text('oregon-city-sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-09-04 16:21:52 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
mcgloughlinPromenade(),
convenienceCardOne(
'https://www.nps.gov/fova/learn/historyculture/mcloughlin-house.htm',
'mcloughlin-house',
'History Buffs may want to visit the McGloughlin House',
'https://www.google.com/maps/@45.3571259,-122.6056864,19z',
'mcloughlin-house-map'
),
convenienceCardOne(
'https://en.wikipedia.org/wiki/Willamette_Falls',
'willamette-falls',
'See Willamette Falls in Oregon City',
'https://www.google.com/maps/@45.35239,-122.61763,16z',
'willamette-falls-map'
),
cardTwo('See Willamette Falls from turnout on I-205 NB','https://goo.gl/maps/kMaYQafxdtHbVqFr5','main'),
cardTwo('See Willamette Falls from turnout on 99E','https://www.google.com/maps/@45.351922,-122.6141362,21z','main'),
],
),
),
),
);
}
}