concise-pdx/web/hikes.dart

70 lines
2.1 KiB
Dart
Raw Permalink Normal View History

2019-08-30 13:05:00 -07:00
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
2019-11-04 01:21:25 -08:00
import 'concisepdx.dart';
import 'dart:html' as html;
2019-08-30 13:05:00 -07:00
class Hikes extends StatefulWidget {
@override
_HikesState createState() => _HikesState();
}
class _HikesState extends State<Hikes> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","must-hikes","/must-hikes.html");
super.initState();
}
2019-08-30 13:05:00 -07:00
@override
Widget build(BuildContext context) {
String _mapTip = 'Most trails are on Google Maps, but service is spotty, so cache some maps offline.';
_mapTip += ' and take along an auxiliary battery to keep your phone charged.';
String _prepared = 'Be sure to have water, and adequate clothing and footwear.';
String _eagleCreekClosed = 'Eagle Creek is still closed on account of fire damage.';
String _whiteWaterTrailClosed = 'The WhiteWater Trail to Jefferson Park is still closed on account of fire damage.';
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) => ConcisePDX()));
},
);
}
),
2019-08-30 13:05:00 -07:00
title: Text(
'hikes',
),
centerTitle: true,
backgroundColor: navy,
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
macleayParkPittockMansion(),
angelsRest(),
multnomahFalls(),
// eagleCreek(),
dogMountain(),
paradisePark(),
silverFalls(),
// jeffersonPark(),
2019-09-04 15:50:33 -07:00
cardThree(_mapTip),
cardThree(_prepared),
cardThree(_eagleCreekClosed),
cardThree(_whiteWaterTrailClosed),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}