Monitorized areas to production
This commit is contained in:
parent
8bec702779
commit
de17ebe2b4
3 changed files with 16 additions and 17 deletions
|
|
@ -30,8 +30,8 @@ android {
|
||||||
applicationId "org.comunes.fires"
|
applicationId "org.comunes.fires"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 3
|
versionCode 4
|
||||||
versionName "1.3"
|
versionName "1.4"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
final String appVersion = '1.3';
|
final String appVersion = '1.4';
|
||||||
|
|
||||||
final Widget appMediumIcon =
|
final Widget appMediumIcon =
|
||||||
Image.asset('images/logo-200.png', width: 60.0, height: 60.0);
|
Image.asset('images/logo-200.png', width: 60.0, height: 60.0);
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ import 'fireNotificationList.dart';
|
||||||
import 'generated/i18n.dart';
|
import 'generated/i18n.dart';
|
||||||
import 'globals.dart' as globals;
|
import 'globals.dart' as globals;
|
||||||
import 'models/appState.dart';
|
import 'models/appState.dart';
|
||||||
|
import 'monitoredAreas.dart';
|
||||||
import 'privacyPage.dart';
|
import 'privacyPage.dart';
|
||||||
import 'sandbox.dart';
|
import 'sandbox.dart';
|
||||||
import 'supportPage.dart';
|
import 'supportPage.dart';
|
||||||
import 'monitoredAreas.dart';
|
|
||||||
|
|
||||||
@immutable
|
@immutable
|
||||||
class _ViewModel {
|
class _ViewModel {
|
||||||
|
|
@ -106,21 +106,20 @@ Widget mainDrawer(BuildContext context, String currentRoute) {
|
||||||
value: ' ${view.unreadCount.toString()} ')
|
value: ' ${view.unreadCount.toString()} ')
|
||||||
: Text(S.of(context).fireNotificationsTitleShort),
|
: Text(S.of(context).fireNotificationsTitleShort),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.popAndPushNamed(context, FireNotificationList.routeName);
|
Navigator.popAndPushNamed(
|
||||||
|
context, FireNotificationList.routeName);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
new ListTile(
|
||||||
|
leading: const Icon(Icons.map),
|
||||||
|
selected: currentRoute == MonitoredAreasPage.routeName,
|
||||||
|
title: new Text(S.of(context).monitoredAreasTitle),
|
||||||
|
onTap: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
Navigator.popAndPushNamed(
|
||||||
|
context, MonitoredAreasPage.routeName);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
globals.isDevelopment
|
|
||||||
? new ListTile(
|
|
||||||
leading: const Icon(Icons.map),
|
|
||||||
selected: currentRoute == MonitoredAreasPage.routeName,
|
|
||||||
title: new Text(S.of(context).monitoredAreasTitle),
|
|
||||||
onTap: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
Navigator.popAndPushNamed(
|
|
||||||
context, MonitoredAreasPage.routeName);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
: null,
|
|
||||||
new Divider(),
|
new Divider(),
|
||||||
new ListTile(
|
new ListTile(
|
||||||
leading: const Icon(Icons.favorite),
|
leading: const Icon(Icons.favorite),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue