Added fire locations

This commit is contained in:
vjrj 2018-06-09 13:09:29 +02:00
parent c4438365ab
commit 8e4e469eb8
15 changed files with 607 additions and 49 deletions

View file

@ -4,6 +4,7 @@ import 'colors.dart';
import 'sandbox.dart';
import 'introPage.dart';
import 'activeFires.dart';
import 'placesAutocompleteWidget.dart';
class MainDrawer extends Drawer {
MainDrawer(BuildContext context, {key})
@ -60,7 +61,7 @@ Widget mainDrawer(BuildContext context) {
leading: const Icon(Icons.whatshot),
title: new Text('Active fires'),
onTap: () {
Navigator.pushNamed(context, ActiveFiresMap.routeName);
Navigator.pushNamed(context, ActiveFiresPage.routeName);
},
),
new ListTile(
@ -71,6 +72,14 @@ Widget mainDrawer(BuildContext context) {
Navigator.pushNamed(context, '/subscriptions');
},
),
new ListTile(
leading: const Icon(Icons.location_on),
title: new Text('Places'),
onTap: () {
// Then close the drawer
Navigator.pushNamed(context, PlacesAutocompleteWidget.routeName);
},
),
new Divider(),
new ListTile(
leading: const Icon(Icons.bug_report),