Final chapter: migrate api doc samples to super-parameters (#104007)

This commit is contained in:
Michael Goderbauer
2022-05-17 15:35:07 -07:00
committed by GitHub
parent 7fdf747723
commit 2cbad4b3ae
352 changed files with 779 additions and 788 deletions

View File

@@ -11,7 +11,7 @@ import 'package:flutter/services.dart';
void main() => runApp(const KeyExampleApp());
class KeyExampleApp extends StatelessWidget {
const KeyExampleApp({Key? key}) : super(key: key);
const KeyExampleApp({super.key});
@override
Widget build(BuildContext context) {
@@ -25,7 +25,7 @@ class KeyExampleApp extends StatelessWidget {
}
class MyKeyExample extends StatefulWidget {
const MyKeyExample({Key? key}) : super(key: key);
const MyKeyExample({super.key});
@override
State<MyKeyExample> createState() => _MyKeyExampleState();

View File

@@ -11,7 +11,7 @@ import 'package:flutter/services.dart';
void main() => runApp(const KeyExampleApp());
class KeyExampleApp extends StatelessWidget {
const KeyExampleApp({Key? key}) : super(key: key);
const KeyExampleApp({super.key});
@override
Widget build(BuildContext context) {
@@ -25,7 +25,7 @@ class KeyExampleApp extends StatelessWidget {
}
class MyPhysicalKeyExample extends StatefulWidget {
const MyPhysicalKeyExample({Key? key}) : super(key: key);
const MyPhysicalKeyExample({super.key});
@override
State<MyPhysicalKeyExample> createState() => _MyPhysicalKeyExampleState();

View File

@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
static const String _title = 'MouseCursor Code Sample';
@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
}
class MyStatelessWidget extends StatelessWidget {
const MyStatelessWidget({Key? key}) : super(key: key);
const MyStatelessWidget({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -12,7 +12,7 @@ import 'package:flutter/services.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
static const String _title = 'Flutter Code Sample';
@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
}
class MyStatefulWidget extends StatefulWidget {
const MyStatefulWidget({Key? key}) : super(key: key);
const MyStatefulWidget({super.key});
@override
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();