concise-pdx/web/vistas.dart

120 lines
3.9 KiB
Dart
Raw Normal View History

2019-08-30 13:05:00 -07:00
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'vistadrives.dart';
import 'vistawalks.dart';
import 'vistahikes.dart';
2019-11-04 01:21:25 -08:00
import 'gorgevistas.dart';
import 'remotevistas.dart';
2019-08-30 13:05:00 -07:00
import 'vistasnorthpdx.dart';
import 'vistasnortheastpdx.dart';
import 'vistassoutheastpdx.dart';
import 'greshamvistas.dart';
import 'oregoncityvistas.dart';
2019-11-04 01:21:25 -08:00
import 'concisepdx.dart';
import 'dart:html' as html;
2019-08-30 13:05:00 -07:00
class Vistas extends StatefulWidget {
@override
_VistasState createState() => _VistasState();
}
class _VistasState extends State<Vistas> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","vistas-and-overlooks","/vistas-and-overlooks.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(
2019-11-04 01:21:25 -08:00
'vistas-and-overlooks',
2019-08-30 13:05:00 -07:00
),
centerTitle: true,
backgroundColor: navy,
),
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) => VistaDrives()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Drive to the Top'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistaWalks()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Walk to the Top'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistaHikes()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('A Real Hike to the Top'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => GorgeVistas()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Gorge'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => RemoteVistas()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Remote'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasNorthPDX()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('North Portland'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasNorthEastPDX()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('NE Portland'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => VistasSouthEastPDX()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('SE Portland'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => GreshamVistas()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Gresham'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => OregonCityVistas()));
},
child: cardOne('Oregon City'),
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}