Prepare more of dev for use_super_parameters (#101073)

This commit is contained in:
Michael Goderbauer
2022-03-30 14:05:05 -07:00
committed by GitHub
parent 75baed585e
commit ca2d60e8e2
109 changed files with 215 additions and 253 deletions

View File

@@ -20,7 +20,7 @@ void main() {
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
const Home({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -44,7 +44,7 @@ class FutureDataHandler {
FutureDataHandler driverDataHandler = FutureDataHandler();
class MotionEventsBody extends StatefulWidget {
const MotionEventsBody({Key? key}) : super(key: key);
const MotionEventsBody({super.key});
@override
State createState() => MotionEventsBodyState();
@@ -259,7 +259,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
}
class TouchEventDiff extends StatelessWidget {
const TouchEventDiff(this.originalEvent, this.synthesizedEvent, {Key? key}) : super(key: key);
const TouchEventDiff(this.originalEvent, this.synthesizedEvent, {super.key});
final Map<String, dynamic> originalEvent;
final Map<String, dynamic> synthesizedEvent;

View File

@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
//
/// A testing page has to override this in order to be put as one of the items in the main page.
abstract class PageWidget extends StatelessWidget {
const PageWidget(this.title, this.tileKey, {Key? key}) : super(key: key);
const PageWidget(this.title, this.tileKey, {super.key});
/// The title of the testing page
///

View File

@@ -18,7 +18,7 @@ class WindowManagerIntegrationsPage extends PageWidget {
}
class WindowManagerBody extends StatefulWidget {
const WindowManagerBody({Key? key}) : super(key: key);
const WindowManagerBody({super.key});
@override
State<WindowManagerBody> createState() => WindowManagerBodyState();