Persist your saved locations

This commit is contained in:
vjrj 2018-06-27 08:59:23 +02:00
parent c9941429f0
commit 0ad2fce4f3
5 changed files with 19 additions and 33 deletions

View file

@ -2,6 +2,8 @@ library fires.globals;
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:async';
import 'yourLocation.dart';
@ -14,7 +16,7 @@ final Widget appMediumIcon =
Image.asset('images/logo-200.png', width: 60.0, height: 60.0);
final Widget appIcon =
Image.asset('images/logo-200.png', width: 24.0, height: 24.0);
// final Future<SharedPreferences> prefs = SharedPreferences.getInstance();
final Future<SharedPreferences> prefs = SharedPreferences.getInstance();
List<YourLocation> yourLocations = [];
final GetIt getIt = new GetIt();
bool isDevelopment = false;