Prepare examples for use_super_parameters (#100514)
This commit is contained in:
committed by
GitHub
parent
195a1cc413
commit
91bcf4200e
@@ -124,7 +124,7 @@ const int IMAGES = 50;
|
||||
|
||||
@immutable
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp(this.port, {Key? key}) : super(key: key);
|
||||
const MyApp(this.port, {super.key});
|
||||
|
||||
final int port;
|
||||
|
||||
@@ -141,7 +141,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyHomePage extends StatefulWidget {
|
||||
const MyHomePage({Key? key, required this.title, required this.port}) : super(key: key);
|
||||
const MyHomePage({super.key, required this.title, required this.port});
|
||||
final String title;
|
||||
final int port;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ description: Simple Flutter project used for benchmarking image loading over net
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0-0 <3.0.0"
|
||||
sdk: ">=2.17.0-0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
Reference in New Issue
Block a user