1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Add use_super_parameters lint (#1269)

This commit is contained in:
Brett Morgan
2022-05-17 02:53:27 -07:00
committed by GitHub
parent 58bc5d7a58
commit 3a0a652984
33 changed files with 90 additions and 100 deletions

View File

@@ -8,7 +8,7 @@ import 'package:flutter_module_books/api.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
@override
Widget build(BuildContext context) {
@@ -35,8 +35,7 @@ class FlutterBookApiHandler extends FlutterBookApi {
}
class BookDetail extends StatefulWidget {
const BookDetail({Key? key, this.hostApi, this.flutterApi, this.book})
: super(key: key);
const BookDetail({super.key, this.hostApi, this.flutterApi, this.book});
// These are the outgoing and incoming APIs that are here for injection for
// tests.
@@ -148,13 +147,13 @@ class _BookDetailState extends State<BookDetail> {
class BookForm extends StatelessWidget {
const BookForm({
Key? key,
super.key,
required this.book,
required this.focusNode,
required this.authorTextController,
required this.subtitleTextController,
required this.titleTextController,
}) : super(key: key);
});
final Book book;
final FocusNode focusNode;