concise-pdx/web/streetareas.dart

106 lines
3.5 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 'middlesoutheaststreets.dart';
import 'northeaststreets.dart';
import 'northweststreets.dart';
import 'northstreets.dart';
import 'stjohnsstreets.dart';
import 'sellwoodstreets.dart';
import 'smalltowns.dart';
import 'southwest.dart';
2019-08-30 13:05:00 -07:00
import 'card_templates.dart';
2019-11-04 01:21:25 -08:00
import 'concisepdx.dart';
2019-08-30 13:05:00 -07:00
class StreetAreas extends StatefulWidget {
@override
_StreetAreasState createState() => _StreetAreasState();
}
class _StreetAreasState extends State<StreetAreas> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","walkable-street-areas","/walkable-street-areas.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(
'walkable-street-areas\nwith bars-restaurants',
),
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) => MiddleSouthEastStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Middle SouthEast'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SellwoodStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Sellwood'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthEastStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('NorthEast'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('North'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => StJohnsStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('St John\'s'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreets()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('NorthWest'),
),
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SouthWestStreets()));
},
2019-09-04 16:20:32 -07:00
child: cardOne('SouthWest'),
),
2019-08-30 13:05:00 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => SmallTowns()));
2019-08-30 13:05:00 -07:00
},
child: cardOne('Small Towns in the Area'),
),
],
),
),
),
);
}
}