concise-pdx/web/northweststreets.dart

60 lines
1.9 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';
2019-09-04 16:21:32 -07:00
import 'northweststreetssights.dart';
2019-11-04 01:21:25 -08:00
import 'streetareas.dart';
2019-08-30 13:05:00 -07:00
class NorthWestStreets extends StatefulWidget {
@override
_NorthWestStreetsState createState() => _NorthWestStreetsState();
}
class _NorthWestStreetsState extends State<NorthWestStreets> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","northwest-streets","/northwest-streets.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) => StreetAreas()));
},
);
}
),
2019-08-30 13:05:00 -07:00
title: Text('walkable northwest streets\nwith bars-restaurants'),
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-11 16:52:45 -07:00
cardTwo('NW 23rd from Burnside to Thurman','https://www.google.com/maps/@45.5295226,-122.6984339,16z','23rd'),
cardTwo('NW 21st from Burnside to Raleigh','https://www.google.com/maps/@45.5291143,-122.6945136,16z','21st'),
2019-09-01 19:14:42 -07:00
InkWell(
2019-11-04 01:21:25 -08:00
onTap: (){
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => NorthWestStreetsSights()));
2019-09-01 19:14:42 -07:00
},
2019-09-04 16:21:32 -07:00
child: cardOne('As long as you\'re in NorthWest Portland.'),
2019-09-01 19:14:42 -07:00
),
2019-08-30 13:05:00 -07:00
],
),
),
),
);
}
}