18 lines
464 B
Dart
18 lines
464 B
Dart
import 'package:flutter/material.dart';
|
|
import 'firesApp.dart';
|
|
import 'package:comunes_flutter/comunes_flutter.dart';
|
|
import 'dart:async';
|
|
import 'globals.dart' as globals;
|
|
|
|
Future<String> getGMapKey() async {
|
|
Secret secret = await SecretLoader(secretPath: 'assets/private-settings.json')
|
|
.load('gmap_key');
|
|
return secret.apiKey;
|
|
}
|
|
|
|
void main() {
|
|
getGMapKey().then((String gmapKey) {
|
|
globals.gmapKey = gmapKey;
|
|
runApp(new FiresApp());
|
|
});
|
|
}
|