concise-pdx/web/chinesejapanesegardens.dart

60 lines
1.8 KiB
Dart
Raw Normal View History

2019-08-30 13:05:00 -07:00
import 'package:flutter_web/material.dart';
import 'defaults.dart';
import 'card_templates.dart';
import 'prebuildcards.dart';
2019-11-04 01:21:25 -08:00
import 'dart:html' as html;
import 'faqs.dart';
2019-08-30 13:05:00 -07:00
class ChineseJapaneseGardens extends StatefulWidget {
@override
_ChineseJapaneseGardensState createState() => _ChineseJapaneseGardensState();
}
class _ChineseJapaneseGardensState extends State<ChineseJapaneseGardens> {
2019-11-04 01:21:25 -08:00
void initState() {
html.window.history.pushState("","chinese-japanese-gardens","/chinese-japanese-gardens.html");
super.initState();
}
2019-08-30 13:05:00 -07:00
@override
Widget build(BuildContext context) {
String _answer = 'The Chinese Garden is a small garden in China Town that will take up maybe an hour of your time.';
_answer += ' Whereas, Japanese Garden is part of the Washington Park complex, which has many attractions,';
_answer += ' and is a destination itself.';
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) => Faqs()));
},
);
}
),
2019-08-30 13:05:00 -07:00
title: Text('chinese-japanese-gardens'),
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>[
cardThree(_answer),
japaneseGarden(),
chineseGarden(),
],
),
),
),
);
}
}