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:
@@ -17,4 +17,3 @@ linter:
|
|||||||
test_types_in_equals: true
|
test_types_in_equals: true
|
||||||
throw_in_finally: true
|
throw_in_finally: true
|
||||||
unnecessary_statements: true
|
unnecessary_statements: true
|
||||||
use_key_in_widget_constructors: false
|
|
||||||
|
|||||||
@@ -22,10 +22,12 @@ final _placesApiClient = GoogleMapsPlaces(apiKey: googleMapsApiKey);
|
|||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await Firebase.initializeApp();
|
await Firebase.initializeApp();
|
||||||
runApp(App());
|
runApp(const App());
|
||||||
}
|
}
|
||||||
|
|
||||||
class App extends StatelessWidget {
|
class App extends StatelessWidget {
|
||||||
|
const App({Key? key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
@@ -40,8 +42,7 @@ class App extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class HomePage extends StatefulWidget {
|
class HomePage extends StatefulWidget {
|
||||||
const HomePage({required this.title});
|
const HomePage({required this.title, Key? key}) : super(key: key);
|
||||||
|
|
||||||
final String title;
|
final String title;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user