add feedback.dart

This commit is contained in:
Trent Palmer 2019-08-31 11:21:42 -07:00
parent 5cc5f01dab
commit 23306616ae
2 changed files with 50 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import 'vistas.dart';
import 'faqs.dart';
import 'hikes.dart';
import 'attractions.dart';
import 'feedback.dart';
import 'card_templates.dart';
void main() => runApp(MainApp());
@ -73,7 +74,12 @@ class _ConcisePDXState extends State<ConcisePDX> {
},
child: cardOne('FAQ\'s'),
),
cardOne('Feedback and Source'),
InkWell(
onTap: () async {
await Navigator.push(context, MaterialPageRoute(builder: (context) => FeedBack()));
},
child: cardOne('Feedback and Source'),
),
],
),
),

43
web/feedback.dart Normal file
View File

@ -0,0 +1,43 @@
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
class FeedBack extends StatefulWidget {
@override
_FeedBackState createState() => _FeedBackState();
}
class _FeedBackState extends State<FeedBack> {
@override
Widget build(BuildContext context) {
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>[
infoCard('concise-pdx.com source on GitHub','https://github.com/TrentSPalmer/concise-pdx','a'),
infoCard('Twitter','https://twitter.com/boringtrent','b'),
infoCard('FaceBook','https://www.facebook.com/trentspalmer','c'),
],
),
),
),
);
}
}