concise-pdx/web/attractions.dart

106 lines
3.7 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';
2019-09-01 19:14:42 -07:00
import 'card_templates.dart';
import 'washingtonpark.dart';
2019-09-03 11:56:53 -07:00
import 'mounthood.dart';
import 'columbiagorge.dart';
2019-09-04 15:50:33 -07:00
import 'oregoncoast.dart';
2019-09-11 21:37:55 -07:00
import 'washingtonstate.dart';
2019-09-12 23:02:16 -07:00
import 'centraloregon.dart';
2019-09-04 11:56:46 -07:00
import 'eastwillamettevalleysights.dart';
import 'westwillamettevalleysights.dart';
2019-11-04 01:21:25 -08:00
import 'concisepdx.dart';
2019-08-30 13:05:00 -07:00
class Attractions extends StatefulWidget {
@override
_AttractionsState createState() => _AttractionsState();
}
class _AttractionsState extends State<Attractions> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","must-see-and-do","/must-see-and-do.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) => ConcisePDX()));
},
);
}
),
2019-08-30 13:05:00 -07:00
title: Text(
'attractions',
),
centerTitle: true,
backgroundColor: navy,
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
2019-09-04 11:56:46 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WestWillametteValleySights()));
2019-09-04 11:56:46 -07:00
},
child: cardOne('Sight-See in the West Willamette Valley.'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => EastWillametteValleySights()));
2019-09-04 11:56:46 -07:00
},
child: cardOne('Sight-See in the East Willamette Valley.'),
),
2019-09-03 11:56:53 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => MountHood()));
2019-09-03 11:56:53 -07:00
},
child: cardOne('Camp, Hike, or Sight-See on Mt Hood.'),
),
2019-09-04 15:50:33 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCoast()));
2019-09-04 15:50:33 -07:00
},
child: cardOne('Camp, Hike, or Sight-See on the Oregon Coast.'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => ColumbiaGorge()));
},
child: cardOne('Camp, Hike, Cruise, or Sight-See in the Columbia River Gorge.'),
),
2019-09-01 19:14:42 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonPark()));
2019-09-01 19:14:42 -07:00
},
child: cardOne('Visit the Zoo, Rose Garden, Hoyt Arboretum, Pittock Mansion, and Japanese Garden at WashingtonPark.'),
),
2019-09-11 21:37:55 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => WashingtonState()));
2019-09-11 21:37:55 -07:00
},
child: cardOne('Sight-See in Washington State.'),
),
2019-09-12 23:02:16 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => CentralOregon()));
2019-09-12 23:02:16 -07:00
},
child: cardOne('Sight-See in Central and Eastern Oregon.'),
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}