From 23306616ae582e52608e4a25ce2c38bd030649af Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 31 Aug 2019 11:21:42 -0700 Subject: [PATCH] add feedback.dart --- web/concisepdx.dart | 8 +++++++- web/feedback.dart | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 web/feedback.dart diff --git a/web/concisepdx.dart b/web/concisepdx.dart index 5b0a7a8..6a7f2ee 100644 --- a/web/concisepdx.dart +++ b/web/concisepdx.dart @@ -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 { }, child: cardOne('FAQ\'s'), ), - cardOne('Feedback and Source'), + InkWell( + onTap: () async { + await Navigator.push(context, MaterialPageRoute(builder: (context) => FeedBack())); + }, + child: cardOne('Feedback and Source'), + ), ], ), ), diff --git a/web/feedback.dart b/web/feedback.dart new file mode 100644 index 0000000..5d39612 --- /dev/null +++ b/web/feedback.dart @@ -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 { + @override + Widget build(BuildContext context) { + + return Scaffold( + appBar: AppBar( + title: Text('trimet'), + centerTitle: true, + backgroundColor: navy, + actions: [ + 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: [ + 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'), + ], + ), + ), + ), + ); + } +}