concise-pdx/web/eastcounty.dart

53 lines
1.6 KiB
Dart
Raw Normal View History

2019-08-31 12:11:39 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-08-31 12:11:39 -07:00
import 'defaults.dart';
import 'card_templates.dart';
2019-11-04 01:21:25 -08:00
import 'smalltowns.dart';
2019-08-31 12:11:39 -07:00
class EastCounty extends StatefulWidget {
@override
_EastCountyState createState() => _EastCountyState();
}
class _EastCountyState extends State<EastCounty> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","east-county","/east-county.html");
super.initState();
}
2019-08-31 12:11:39 -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) => SmallTowns()));
},
);
}
),
title: Text('east county'),
2019-08-31 12:11:39 -07:00
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-08-31 12:11:39 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
cardTwo('Main Ave between Powell and 5th in Downtown Gresham','https://www.google.com/maps/@45.4996431,-122.4304628,17z','downtown-gresham'),
cardTwo('History Columbia River Hwy in Downtown Troutdale','https://www.google.com/maps/@45.540483,-122.3881627,18z','downtown-troutdale'),
],
),
),
),
);
}
}