concise-pdx/web/eastwillamettevalley.dart

66 lines
2.0 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 'silverton.dart';
import 'oregoncity.dart';
2019-11-04 01:21:25 -08:00
import 'smalltowns.dart';
2019-08-30 13:05:00 -07:00
class EastWillametteValley extends StatefulWidget {
@override
_EastWillametteValleyState createState() => _EastWillametteValleyState();
}
class _EastWillametteValleyState extends State<EastWillametteValley> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","east-willamette-valley","/east-willamette-valley.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) => SmallTowns()));
},
);
}
),
title: Text('east willamette valley'),
2019-08-30 13:05:00 -07:00
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>[
2019-09-01 14:04:49 -07:00
cardTwo('Downtown Mt Angel is famous for German Food','https://www.google.com/maps/@45.0696714,-122.7991836,17z','downtown-mtangel'),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Silverton()));
},
child: cardOne('Silverton (and sights)'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCity()));
},
child: cardOne('Oregon City (and sights)'),
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}