Adjust flutter_maps_firestore's lint rules (#821)

pull/833/head
Brett Morgan 3 years ago committed by GitHub
parent 0850579bc8
commit 26e0e215cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,4 +17,3 @@ linter:
test_types_in_equals: true
throw_in_finally: true
unnecessary_statements: true
use_key_in_widget_constructors: false

@ -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

Loading…
Cancel
Save