concise-pdx/web/mounthood.dart

61 lines
1.7 KiB
Dart
Raw Normal View History

2019-09-03 11:56:53 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-09-03 11:56:53 -07:00
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
2019-11-04 01:21:25 -08:00
import 'attractions.dart';
2019-09-03 11:56:53 -07:00
class MountHood extends StatefulWidget {
@override
_MountHoodState createState() => _MountHoodState();
}
class _MountHoodState extends State<MountHood> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","mthood","/mthood.html");
super.initState();
}
2019-09-03 11:56:53 -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-03 11:56:53 -07:00
title: Text('MountHood'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-09-03 11:56:53 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
timberlineLodge(),
paradisePark(),
elkMeadows(),
cairnBasin(),
timothyLake(),
trilliumLake(),
lostLake(),
infoCard('More Hikes on Mt Hood','https://www.oregonhikers.org/field_guide/Mount_Hood_Hikes','a'),
infoCard('More Camping on Mt Hood','https://www.fs.usda.gov/activity/mthood/recreation/camping-cabins','b'),
],
),
),
),
);
}
}