YourLocation and some persist work
This commit is contained in:
parent
6488957148
commit
c9941429f0
13 changed files with 240 additions and 85 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'firesApp.dart';
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:comunes_flutter/comunes_flutter.dart';
|
||||
import 'dart:async';
|
||||
import 'globals.dart' as globals;
|
||||
import 'basicLocationPersist.dart';
|
||||
import 'firebaseMessagingConf.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'firebaseMessagingConf.dart';
|
||||
import 'firesApp.dart';
|
||||
import 'globals.dart' as globals;
|
||||
import 'yourLocation.dart';
|
||||
Future<Map<String, dynamic>> loadSecrets() async {
|
||||
return await SecretLoader(secretPath: 'assets/private-settings.json').load();
|
||||
}
|
||||
|
|
@ -16,8 +16,9 @@ void mainCommon() {
|
|||
globals.gmapKey = secrets['gmapKey'];
|
||||
globals.firesApiKey = secrets['firesApiKey'];
|
||||
globals.firesApiUrl = secrets['firesApiUrl'] + "api/v1/";
|
||||
globals.prefs.then((prefs) {
|
||||
loadYourLocationsWithPrefs(prefs);
|
||||
YourLocationRepository.repo.remove(0);
|
||||
YourLocationRepository.repo.getAll().then((yourLocations) {
|
||||
globals.yourLocations = yourLocations;
|
||||
firebaseConfig();
|
||||
|
||||
// Run baby run!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue