Prepare dev (minus flutter_gallery) for use_super_parameters (#100516)

This commit is contained in:
Michael Goderbauer
2022-03-29 12:52:42 -07:00
committed by GitHub
parent 43029bebc4
commit 195a1cc413
59 changed files with 89 additions and 108 deletions

View File

@@ -15,8 +15,8 @@ void main() {
class PlatformViewApp extends StatefulWidget {
const PlatformViewApp({
Key? key,
}) : super(key: key);
super.key,
});
@override
PlatformViewAppState createState() => PlatformViewAppState();
@@ -40,7 +40,7 @@ class PlatformViewAppState extends State<PlatformViewApp> {
}
class PlatformViewLayout extends StatelessWidget {
const PlatformViewLayout({ Key? key }) : super(key: key);
const PlatformViewLayout({ super.key });
@override
Widget build(BuildContext context) {
@@ -70,7 +70,7 @@ class PlatformViewLayout extends StatelessWidget {
}
class DummyPlatformView extends StatelessWidget {
const DummyPlatformView({Key? key}) : super(key: key);
const DummyPlatformView({super.key});
@override
Widget build(BuildContext context) {
@@ -96,7 +96,7 @@ class DummyPlatformView extends StatelessWidget {
}
class RotationContainer extends StatefulWidget {
const RotationContainer({Key? key}) : super(key: key);
const RotationContainer({super.key});
@override
State<RotationContainer> createState() => _RotationContainerState();

View File

@@ -2,7 +2,7 @@ name: platform_views_layout
description: A benchmark for platform views.
environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=2.17.0-0 <3.0.0"
dependencies:
flutter: