mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Adjust flutter_maps_firestore's lint rules (#821)
This commit is contained in:
@@ -22,10 +22,12 @@ final _placesApiClient = GoogleMapsPlaces(apiKey: googleMapsApiKey);
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp();
|
||||
runApp(App());
|
||||
runApp(const App());
|
||||
}
|
||||
|
||||
class App extends StatelessWidget {
|
||||
const App({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
@@ -40,8 +42,7 @@ class App extends StatelessWidget {
|
||||
}
|
||||
|
||||
class HomePage extends StatefulWidget {
|
||||
const HomePage({required this.title});
|
||||
|
||||
const HomePage({required this.title, Key? key}) : super(key: key);
|
||||
final String title;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user