concise-pdx/web/trimet.dart
2019-08-30 13:05:00 -07:00

51 lines
1.6 KiB
Dart

import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
class TriMet extends StatefulWidget {
@override
_TriMetState createState() => _TriMetState();
}
class _TriMetState extends State<TriMet> {
@override
Widget build(BuildContext context) {
String _answer = 'The buses, lightrail, and streetcars are all on the same system.';
_answer += ' This makes it easy to find your way using Google Maps for directions.';
String _fareAnswer = 'Presumably if you are a tourist, you want to buy a HOP ticket from a ticket machine,';
_fareAnswer += ' or pay a bus driver cash, (instead of buying a HOP card).';
_fareAnswer += ' All day costs \$5, 2.5 hours costs \$2.50.';
return Scaffold(
appBar: AppBar(
title: Text('trimet'),
centerTitle: true,
backgroundColor: navy,
actions: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
),
],
),
backgroundColor: peacockBlue,
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.only(bottom: 6.0,),
child: Column(
children: <Widget>[
cardThree(_answer),
infoCard('There no longer is a \"Fareless Square\".','https://en.wikipedia.org/wiki/Fareless_Square','a'),
infoCard(_fareAnswer,'https://trimet.org/fares/','b'),
],
),
),
),
);
}
}