Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:fires_flutter/models/yourLocation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_google_places_autocomplete/flutter_google_places_autocomplete.dart';
|
||||
|
||||
import 'package:fires_flutter/models/yourLocation.dart';
|
||||
import 'generated/i18n.dart';
|
||||
import 'package:flutter_simple_dependency_injection/injector.dart';
|
||||
|
||||
import 'generated/i18n.dart';
|
||||
|
||||
Future<YourLocation> openPlacesDialog(GlobalKey<ScaffoldState> sc) async {
|
||||
Mode _mode = Mode.overlay;
|
||||
String gmapKey = Injector.getInjector().get<String>(key: "gmapKey");
|
||||
|
|
@ -16,7 +16,7 @@ Future<YourLocation> openPlacesDialog(GlobalKey<ScaffoldState> sc) async {
|
|||
hint: S.of(sc.currentContext).typeTheNameOfAPlace,
|
||||
apiKey: gmapKey,
|
||||
onError: (res) {
|
||||
sc.currentState
|
||||
ScaffoldMessenger.of(sc.currentContext)
|
||||
.showSnackBar(new SnackBar(content: new Text(res.errorMessage)));
|
||||
print('Error $res');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue