concise-pdx/web/oregoncoast.dart

61 lines
1.9 KiB
Dart
Raw Normal View History

2019-09-04 15:50:33 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-09-04 15:50:33 -07:00
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
2019-11-04 01:21:25 -08:00
import 'attractions.dart';
2019-09-04 15:50:33 -07:00
class OregonCoast extends StatefulWidget {
@override
_OregonCoastState createState() => _OregonCoastState();
}
class _OregonCoastState extends State<OregonCoast> {
String _coastString = 'These is not a single State Park Campground on the Oregon Coast that is not Amazing!';
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","oregon-coast","/oregon-coast.html");
super.initState();
}
2019-09-04 15:50:33 -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) => Attractions()));
},
);
}
),
2019-09-04 15:50:33 -07:00
title: Text('OregonCoast'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-09-04 15:50:33 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
fortStevens(),
tillamookAirMuseum(),
oregonCoastAquarium(),
seaLionCaves(),
infoCard(_coastString,'https://oregonstateparks.org/index.cfm?do=visit.dsp_find','a'),
infoCard('Watch Whales on the Oregon Coast','https://oregonstateparks.org/index.cfm?do=thingstodo.dsp_whalewatching','b'),
infoCard('Hike at the Oregon Coast.','https://www.oregonhikers.org/field_guide/Oregon_Coast_Hikes','c'),
],
),
),
),
);
}
}