concise-pdx/web/westwillamettevalleysights....

64 lines
2.1 KiB
Dart
Raw Normal View History

2019-09-04 11:56:46 -07:00
import 'package:flutter_web/material.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
2019-09-04 11:56:46 -07:00
import 'defaults.dart';
import 'prebuildcards.dart';
import 'card_templates.dart';
2019-11-04 01:21:25 -08:00
import 'attractions.dart';
2019-09-04 11:56:46 -07:00
class WestWillametteValleySights extends StatefulWidget {
@override
_WestWillametteValleySightsState createState() => _WestWillametteValleySightsState();
}
class _WestWillametteValleySightsState extends State<WestWillametteValleySights> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","west-willamette-valley-sights","/west-willamette-valley-sights.html");
super.initState();
}
2019-09-04 11:56:46 -07:00
@override
Widget build(BuildContext context) {
String _wineTastingString = 'Newberg-Dundee is Oregon\'s biggest wine tasting region.';
_wineTastingString += ' But be careful out there, because no one wants to deal with a bunch';
_wineTastingString += ' of drunk jerks in Newberg at 1 or 2 am.';
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-04 11:56:46 -07:00
title: Text('west willamette valley sights'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
2019-11-04 01:21:25 -08:00
Home(context),
2019-09-04 11:56:46 -07:00
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
cardThree(_wineTastingString),
convenienceCardOne(
'https://www.oregonwines.com/wineries/by-region/dundee-newberg-wineries/',
'newberg-dundee-wine',
'Some Newberg-Dundee Wine Tasting Info',
'https://www.google.com/maps/@45.3046966,-123.0034138,12z',
'newberg-dundee-wine-map'
),
spruceGoose(),
],
),
),
),
);
}
}