concise-pdx/web/washingtonstate.dart

64 lines
1.8 KiB
Dart
Raw Normal View History

2019-09-11 21:37:55 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-09-11 21:37:55 -07:00
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
import 'washingtonhiking.dart';
2019-11-04 01:21:25 -08:00
import 'attractions.dart';
2019-09-11 21:37:55 -07:00
class WashingtonState extends StatefulWidget {
@override
_WashingtonStateState createState() => _WashingtonStateState();
}
class _WashingtonStateState extends State<WashingtonState> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","washington-state","/washington-state.html");
super.initState();
}
2019-09-11 21:37:55 -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-11 21:37:55 -07:00
title: Text('WashingtonState'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-09-11 21:37:55 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
mountSaintHelens(),
olympicNationalPark(),
mountRanierNationalPark(),
hanfordReachNationalMonument(),
channeledScablands(),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonHiking()));
2019-09-11 21:37:55 -07:00
},
child: cardOne('Hiking in Washington State.'),
),
],
),
),
),
);
}
}