mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
update sample to use new versions (#702)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// ignore: unused_import
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:firebase_core_web/firebase_core_web.dart';
|
||||
|
||||
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
||||
|
||||
void registerPlugins(PluginRegistry registry) {
|
||||
FirebaseCoreWeb.registerWith(registry.registrarFor(FirebaseCoreWeb));
|
||||
registry.registerMessageHandler();
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
@@ -16,7 +17,11 @@ const _pinkHue = 350.0;
|
||||
// Places API client used for Place Photos
|
||||
final _placesApiClient = GoogleMapsPlaces(apiKey: googleMapsApiKey);
|
||||
|
||||
void main() => runApp(App());
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp();
|
||||
runApp(App());
|
||||
}
|
||||
|
||||
class App extends StatelessWidget {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user