mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key` * `flutter format`
This commit is contained in:
@@ -65,7 +65,7 @@ final demos = [
|
||||
];
|
||||
|
||||
class FormApp extends StatelessWidget {
|
||||
const FormApp({Key? key}) : super(key: key);
|
||||
const FormApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -79,7 +79,7 @@ class FormApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class HomePage extends StatelessWidget {
|
||||
const HomePage({Key? key}) : super(key: key);
|
||||
const HomePage({super.key});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
@@ -96,7 +96,7 @@ class HomePage extends StatelessWidget {
|
||||
class DemoTile extends StatelessWidget {
|
||||
final Demo? demo;
|
||||
|
||||
const DemoTile({this.demo, Key? key}) : super(key: key);
|
||||
const DemoTile({this.demo, super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
// Demonstrates how to use autofill hints. The full list of hints is here:
|
||||
// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/text_editing/autofill_hint.dart
|
||||
class AutofillDemo extends StatefulWidget {
|
||||
const AutofillDemo({Key? key}) : super(key: key);
|
||||
const AutofillDemo({super.key});
|
||||
|
||||
@override
|
||||
State<AutofillDemo> createState() => _AutofillDemoState();
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
class FormWidgetsDemo extends StatefulWidget {
|
||||
const FormWidgetsDemo({Key? key}) : super(key: key);
|
||||
const FormWidgetsDemo({super.key});
|
||||
|
||||
@override
|
||||
State<FormWidgetsDemo> createState() => _FormWidgetsDemoState();
|
||||
|
||||
@@ -31,8 +31,8 @@ class SignInHttpDemo extends StatefulWidget {
|
||||
|
||||
const SignInHttpDemo({
|
||||
this.httpClient,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<SignInHttpDemo> createState() => _SignInHttpDemoState();
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:english_words/english_words.dart' as english_words;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class FormValidationDemo extends StatefulWidget {
|
||||
const FormValidationDemo({Key? key}) : super(key: key);
|
||||
const FormValidationDemo({super.key});
|
||||
|
||||
@override
|
||||
State<FormValidationDemo> createState() => _FormValidationDemoState();
|
||||
|
||||
Reference in New Issue
Block a user