Fire notifications

This commit is contained in:
Vicente J. Ruiz Jurado 2018-07-26 19:13:12 +02:00
parent c680482b08
commit 5ecc3c3401
22 changed files with 524 additions and 31 deletions

View file

@ -9,6 +9,8 @@ import 'package:comunes_flutter/comunes_flutter.dart';
import 'privacyPage.dart';
import 'fireAlert.dart';
import 'supportPage.dart';
import 'fireNotificationList.dart';
import 'package:community_material_icon/community_material_icon.dart';
class MainDrawer extends Drawer {
MainDrawer(BuildContext context, {key})
@ -63,6 +65,15 @@ Widget mainDrawer(BuildContext context) {
Navigator.pushNamed(context, FireAlert.routeName);
},
),
new ListTile(
leading: const Icon(Icons.notifications),
title: new Text(S.of(context).fireNotificationsTitle),
onTap: () {
// Then close the drawer
Navigator.pop(context);
Navigator.pushNamed(context, FireNotificationList.routeName);
},
),
new Divider(),
new ListTile(
leading: const Icon(Icons.favorite),