concise-pdx/web/smalltowns.dart

72 lines
2.2 KiB
Dart
Raw Normal View History

2019-08-30 13:05:00 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-08-30 13:05:00 -07:00
import 'defaults.dart';
import 'card_templates.dart';
import 'eastwillamettevalley.dart';
import 'westwillamettevalley.dart';
2019-08-31 12:11:39 -07:00
import 'eastcounty.dart';
2019-11-04 01:21:25 -08:00
import 'streetareas.dart';
2019-08-30 13:05:00 -07:00
class SmallTowns extends StatefulWidget {
@override
_SmallTownsState createState() => _SmallTownsState();
}
class _SmallTownsState extends State<SmallTowns> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","small-town-streets","/small-town-streets.html");
super.initState();
}
2019-08-30 13:05:00 -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) => StreetAreas()));
},
);
}
),
2019-08-30 13:05:00 -07:00
title: Text('walkable small-towns\nwith bars-restaurants'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-08-30 13:05:00 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValley()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('East Willamette Valley'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WestWillametteValley()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('West Willamette Valley'),
),
2019-08-31 12:11:39 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastCounty()));
2019-08-31 12:11:39 -07:00
},
child: cardOne('East County'),
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}