Final chapter: migrate api doc samples to super-parameters (#104007)
This commit is contained in:
committed by
GitHub
parent
7fdf747723
commit
2cbad4b3ae
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const AutocompleteExampleApp());
|
||||
|
||||
class AutocompleteExampleApp extends StatelessWidget {
|
||||
const AutocompleteExampleApp({Key? key}) : super(key: key);
|
||||
const AutocompleteExampleApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -27,7 +27,7 @@ class AutocompleteExampleApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class AutocompleteBasicExample extends StatelessWidget {
|
||||
const AutocompleteBasicExample({Key? key}) : super(key: key);
|
||||
const AutocompleteBasicExample({super.key});
|
||||
|
||||
static const List<String> _kOptions = <String>[
|
||||
'aardvark',
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const AutocompleteExampleApp());
|
||||
|
||||
class AutocompleteExampleApp extends StatelessWidget {
|
||||
const AutocompleteExampleApp({Key? key}) : super(key: key);
|
||||
const AutocompleteExampleApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -54,7 +54,7 @@ class User {
|
||||
}
|
||||
|
||||
class AutocompleteBasicUserExample extends StatelessWidget {
|
||||
const AutocompleteBasicUserExample({Key? key}) : super(key: key);
|
||||
const AutocompleteBasicUserExample({super.key});
|
||||
|
||||
static const List<User> _userOptions = <User>[
|
||||
User(name: 'Alice', email: 'alice@example.com'),
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
}
|
||||
|
||||
class BottomAppBarDemo extends StatefulWidget {
|
||||
const BottomAppBarDemo({Key? key}) : super(key: key);
|
||||
const BottomAppBarDemo({super.key});
|
||||
|
||||
@override
|
||||
State createState() => _BottomAppBarDemoState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
}
|
||||
|
||||
class ButtonApp extends StatelessWidget {
|
||||
const ButtonApp({Key? key}) : super(key: key);
|
||||
const ButtonApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -26,7 +26,7 @@ class ButtonApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ButtonTypesExample extends StatelessWidget {
|
||||
const ButtonTypesExample({Key? key}) : super(key: key);
|
||||
const ButtonTypesExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -45,7 +45,7 @@ class ButtonTypesExample extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ButtonTypesGroup extends StatelessWidget {
|
||||
const ButtonTypesGroup({ Key? key, required this.enabled }) : super(key: key);
|
||||
const ButtonTypesGroup({ super.key, required this.enabled });
|
||||
|
||||
final bool enabled;
|
||||
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() { runApp(const CardExamplesApp()); }
|
||||
|
||||
class CardExamplesApp extends StatelessWidget {
|
||||
const CardExamplesApp({Key? key}) : super(key: key);
|
||||
const CardExamplesApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -38,7 +38,7 @@ class CardExamplesApp extends StatelessWidget {
|
||||
///
|
||||
/// https://m3.material.io/components/cards/specs#a012d40d-7a5c-4b07-8740-491dec79d58b
|
||||
class ElevatedCardExample extends StatelessWidget {
|
||||
const ElevatedCardExample({ Key? key }) : super(key: key);
|
||||
const ElevatedCardExample({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -61,7 +61,7 @@ class ElevatedCardExample extends StatelessWidget {
|
||||
///
|
||||
/// https://m3.material.io/components/cards/specs#0f55bf62-edf2-4619-b00d-b9ed462f2c5a
|
||||
class FilledCardExample extends StatelessWidget {
|
||||
const FilledCardExample({ Key? key }) : super(key: key);
|
||||
const FilledCardExample({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -86,7 +86,7 @@ class FilledCardExample extends StatelessWidget {
|
||||
///
|
||||
/// https://m3.material.io/components/cards/specs#0f55bf62-edf2-4619-b00d-b9ed462f2c5a
|
||||
class OutlinedCardExample extends StatelessWidget {
|
||||
const OutlinedCardExample({ Key? key }) : super(key: key);
|
||||
const OutlinedCardExample({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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();
|
||||
|
||||
@@ -10,7 +10,7 @@ import 'package:flutter/scheduler.dart' show timeDilation;
|
||||
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';
|
||||
|
||||
@@ -29,7 +29,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();
|
||||
|
||||
@@ -11,7 +11,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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -31,12 +31,12 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class LinkedLabelCheckbox extends StatelessWidget {
|
||||
const LinkedLabelCheckbox({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.padding,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String label;
|
||||
final EdgeInsets padding;
|
||||
@@ -77,7 +77,7 @@ class LinkedLabelCheckbox extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -29,12 +29,12 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class LabeledCheckbox extends StatelessWidget {
|
||||
const LabeledCheckbox({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.padding,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String label;
|
||||
final EdgeInsets padding;
|
||||
@@ -66,7 +66,7 @@ class LabeledCheckbox extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -34,7 +34,7 @@ class Actor {
|
||||
}
|
||||
|
||||
class CastList extends StatefulWidget {
|
||||
const CastList({Key? key}) : super(key: key);
|
||||
const CastList({super.key});
|
||||
|
||||
@override
|
||||
State createState() => CastListState();
|
||||
@@ -76,7 +76,7 @@ class CastListState extends State<CastList> {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -24,7 +24,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key, this.restorationId}) : super(key: key);
|
||||
const MyStatefulWidget({super.key, this.restorationId});
|
||||
|
||||
final String? restorationId;
|
||||
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -24,7 +24,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key, this.restorationId}) : super(key: key);
|
||||
const MyStatefulWidget({super.key, this.restorationId});
|
||||
|
||||
final String? restorationId;
|
||||
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -25,7 +25,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DialogExample extends StatelessWidget {
|
||||
const DialogExample({Key? key}) : super(key: key);
|
||||
const DialogExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DialogExample extends StatelessWidget {
|
||||
const DialogExample({Key? key}) : super(key: key);
|
||||
const DialogExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DialogExample extends StatelessWidget {
|
||||
const DialogExample({Key? key}) : super(key: key);
|
||||
const DialogExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DialogExample extends StatelessWidget {
|
||||
const DialogExample({Key? key}) : super(key: key);
|
||||
const DialogExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DialogExample extends StatelessWidget {
|
||||
const DialogExample({Key? key}) : super(key: key);
|
||||
const DialogExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -11,7 +11,7 @@ const List<String> list = <String>['One', 'Two', 'Three', 'Four'];
|
||||
void main() => runApp(const DropdownButtonApp());
|
||||
|
||||
class DropdownButtonApp extends StatelessWidget {
|
||||
const DropdownButtonApp({Key? key}) : super(key: key);
|
||||
const DropdownButtonApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -27,7 +27,7 @@ class DropdownButtonApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DropdownButtonExample extends StatefulWidget {
|
||||
const DropdownButtonExample({Key? key}) : super(key: key);
|
||||
const DropdownButtonExample({super.key});
|
||||
|
||||
@override
|
||||
State<DropdownButtonExample> createState() => _DropdownButtonExampleState();
|
||||
|
||||
@@ -17,7 +17,7 @@ Map<String, String> cities = <String, String>{
|
||||
void main() => runApp(const DropdownButtonApp());
|
||||
|
||||
class DropdownButtonApp extends StatelessWidget {
|
||||
const DropdownButtonApp({Key? key}) : super(key: key);
|
||||
const DropdownButtonApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -31,7 +31,7 @@ class DropdownButtonApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DropdownButtonExample extends StatefulWidget {
|
||||
const DropdownButtonExample({Key? key}) : super(key: key);
|
||||
const DropdownButtonExample({super.key});
|
||||
|
||||
@override
|
||||
State<DropdownButtonExample> createState() => _DropdownButtonExampleState();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const DropdownButtonApp());
|
||||
|
||||
class DropdownButtonApp extends StatelessWidget {
|
||||
const DropdownButtonApp({Key? key}) : super(key: key);
|
||||
const DropdownButtonApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -23,7 +23,7 @@ class DropdownButtonApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DropdownButtonExample extends StatefulWidget {
|
||||
const DropdownButtonExample({Key? key}) : super(key: key);
|
||||
const DropdownButtonExample({super.key});
|
||||
|
||||
@override
|
||||
State<DropdownButtonExample> createState() => _DropdownButtonExampleState();
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -48,7 +48,7 @@ List<Item> generateItems(int numberOfItems) {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -49,7 +49,7 @@ List<Item> generateItems(int numberOfItems) {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const MaterialApp(home: MyApp()));
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FabExample extends StatelessWidget {
|
||||
const FabExample({Key? key}) : super(key: key);
|
||||
const FabExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FabExample extends StatelessWidget {
|
||||
const FabExample({Key? key}) : super(key: key);
|
||||
const FabExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FabExample extends StatelessWidget {
|
||||
const FabExample({Key? key}) : super(key: key);
|
||||
const FabExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FabExample extends StatelessWidget {
|
||||
const FabExample({Key? key}) : super(key: key);
|
||||
const FabExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -35,7 +35,7 @@ class AlmostEndFloatFabLocation extends StandardFabLocation
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key}) : super(key: key);
|
||||
const MyStatelessWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -30,7 +30,7 @@ class MyApp extends StatelessWidget {
|
||||
double _volume = 0.0;
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter 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
|
||||
@override
|
||||
|
||||
@@ -21,7 +21,7 @@ void main() {
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key, required this.image}) : super(key: key);
|
||||
const MyStatelessWidget({super.key, required this.image});
|
||||
|
||||
final ImageProvider image;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ void main() {
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key, required this.image}) : super(key: key);
|
||||
const MyStatelessWidget({super.key, required this.image});
|
||||
|
||||
final ImageProvider image;
|
||||
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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();
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class InputDecoratorExample extends StatelessWidget {
|
||||
const InputDecoratorExample({Key? key}) : super(key: key);
|
||||
const InputDecoratorExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class InputDecoratorExample extends StatelessWidget {
|
||||
const InputDecoratorExample({Key? key}) : super(key: key);
|
||||
const InputDecoratorExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class InputDecoratorExample extends StatelessWidget {
|
||||
const InputDecoratorExample({Key? key}) : super(key: key);
|
||||
const InputDecoratorExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class InputDecoratorExample extends StatelessWidget {
|
||||
const InputDecoratorExample({Key? key}) : super(key: key);
|
||||
const InputDecoratorExample({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter 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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -27,12 +27,12 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class CustomListItem extends StatelessWidget {
|
||||
const CustomListItem({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.thumbnail,
|
||||
required this.title,
|
||||
required this.user,
|
||||
required this.viewCount,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final Widget thumbnail;
|
||||
final String title;
|
||||
@@ -70,11 +70,10 @@ class CustomListItem extends StatelessWidget {
|
||||
|
||||
class _VideoDescription extends StatelessWidget {
|
||||
const _VideoDescription({
|
||||
Key? key,
|
||||
required this.title,
|
||||
required this.user,
|
||||
required this.viewCount,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String title;
|
||||
final String user;
|
||||
@@ -111,7 +110,7 @@ class _VideoDescription extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key}) : super(key: key);
|
||||
const MyStatelessWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -27,13 +27,12 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class _ArticleDescription extends StatelessWidget {
|
||||
const _ArticleDescription({
|
||||
Key? key,
|
||||
required this.title,
|
||||
required this.subtitle,
|
||||
required this.author,
|
||||
required this.publishDate,
|
||||
required this.readDuration,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String title;
|
||||
final String subtitle;
|
||||
@@ -100,14 +99,14 @@ class _ArticleDescription extends StatelessWidget {
|
||||
|
||||
class CustomListItemTwo extends StatelessWidget {
|
||||
const CustomListItemTwo({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.thumbnail,
|
||||
required this.title,
|
||||
required this.subtitle,
|
||||
required this.author,
|
||||
required this.publishDate,
|
||||
required this.readDuration,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final Widget thumbnail;
|
||||
final String title;
|
||||
@@ -149,7 +148,7 @@ class CustomListItemTwo extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key}) : super(key: key);
|
||||
const MyStatelessWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -41,7 +41,7 @@ class ListTileCursor extends MaterialStateMouseCursor {
|
||||
}
|
||||
|
||||
class MyStatelessWidget extends StatelessWidget {
|
||||
const MyStatelessWidget({Key? key}) : super(key: key);
|
||||
const MyStatelessWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -34,7 +34,7 @@ class SelectedBorder extends RoundedRectangleBorder
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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) {
|
||||
|
||||
@@ -15,7 +15,7 @@ class Destination {
|
||||
}
|
||||
|
||||
class RootPage extends StatelessWidget {
|
||||
const RootPage({ Key? key, required this.destination }) : super(key: key);
|
||||
const RootPage({ super.key, required this.destination });
|
||||
|
||||
final Destination destination;
|
||||
|
||||
@@ -117,7 +117,7 @@ class RootPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ListPage extends StatelessWidget {
|
||||
const ListPage({ Key? key, required this.destination }) : super(key: key);
|
||||
const ListPage({ super.key, required this.destination });
|
||||
|
||||
final Destination destination;
|
||||
|
||||
@@ -161,7 +161,7 @@ class ListPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
class TextPage extends StatefulWidget {
|
||||
const TextPage({ Key? key, required this.destination }) : super(key: key);
|
||||
const TextPage({ super.key, required this.destination });
|
||||
|
||||
final Destination destination;
|
||||
|
||||
@@ -217,10 +217,10 @@ class _TextPageState extends State<TextPage> {
|
||||
|
||||
class DestinationView extends StatefulWidget {
|
||||
const DestinationView({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.destination,
|
||||
required this.navigatorKey,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final Destination destination;
|
||||
final Key navigatorKey;
|
||||
@@ -256,7 +256,7 @@ class _DestinationViewState extends State<DestinationView> {
|
||||
}
|
||||
|
||||
class Home extends StatefulWidget {
|
||||
const Home({ Key? key }) : super(key: key);
|
||||
const Home({ super.key });
|
||||
|
||||
@override
|
||||
State<Home> createState() => _HomeState();
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class NavigationExample extends StatefulWidget {
|
||||
const NavigationExample({Key? key}) : super(key: key);
|
||||
const NavigationExample({super.key});
|
||||
|
||||
@override
|
||||
State<NavigationExample> createState() => _NavigationExampleState();
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class NavRailExample extends StatefulWidget {
|
||||
const NavRailExample({Key? key}) : super(key: key);
|
||||
const NavRailExample({super.key});
|
||||
|
||||
@override
|
||||
State<NavRailExample> createState() => _NavRailExampleState();
|
||||
|
||||
@@ -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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -21,7 +21,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class NavRailExample extends StatefulWidget {
|
||||
const NavRailExample({Key? key}) : super(key: key);
|
||||
const NavRailExample({super.key});
|
||||
|
||||
@override
|
||||
State<NavRailExample> createState() => _NavRailExampleState();
|
||||
|
||||
@@ -11,7 +11,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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -24,7 +24,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyNavigationRail extends StatefulWidget {
|
||||
const MyNavigationRail({Key? key}) : super(key: key);
|
||||
const MyNavigationRail({super.key});
|
||||
|
||||
@override
|
||||
State<MyNavigationRail> createState() => _MyNavigationRailState();
|
||||
@@ -90,7 +90,7 @@ class _MyNavigationRailState extends State<MyNavigationRail> {
|
||||
}
|
||||
|
||||
class MyNavigationRailFab extends StatelessWidget {
|
||||
const MyNavigationRailFab({Key? key, this.onPressed}) : super(key: key);
|
||||
const MyNavigationRailFab({super.key, this.onPressed});
|
||||
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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) {
|
||||
|
||||
@@ -19,7 +19,7 @@ enum MenuSelection {
|
||||
}
|
||||
|
||||
class SampleApp extends StatelessWidget {
|
||||
const SampleApp({Key? key}) : super(key: key);
|
||||
const SampleApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -30,7 +30,7 @@ class SampleApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyMenuBarApp extends StatefulWidget {
|
||||
const MyMenuBarApp({Key? key}) : super(key: key);
|
||||
const MyMenuBarApp({super.key});
|
||||
|
||||
@override
|
||||
State<MyMenuBarApp> createState() => _MyMenuBarAppState();
|
||||
|
||||
@@ -12,7 +12,7 @@ enum Menu { itemOne, itemTwo, itemThree, itemFour }
|
||||
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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -30,7 +30,7 @@ class MyApp extends StatelessWidget {
|
||||
enum SingingCharacter { lafayette, jefferson }
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,7 @@ class MyApp extends StatelessWidget {
|
||||
enum SingingCharacter { lafayette, jefferson }
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -11,7 +11,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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -29,13 +29,13 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class LinkedLabelRadio extends StatelessWidget {
|
||||
const LinkedLabelRadio({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.padding,
|
||||
required this.groupValue,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String label;
|
||||
final EdgeInsets padding;
|
||||
@@ -75,7 +75,7 @@ class LinkedLabelRadio extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -27,13 +27,13 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
class LabeledRadio extends StatelessWidget {
|
||||
const LabeledRadio({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.padding,
|
||||
required this.groupValue,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final String label;
|
||||
final EdgeInsets padding;
|
||||
@@ -69,7 +69,7 @@ class LabeledRadio extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyStatefulWidget extends StatefulWidget {
|
||||
const MyStatefulWidget({Key? key}) : super(key: key);
|
||||
const MyStatefulWidget({super.key});
|
||||
|
||||
@override
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = '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();
|
||||
|
||||
@@ -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 = 'RefreshIndicator Sample';
|
||||
|
||||
@@ -23,7 +23,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class RefreshIndicatorExample extends StatefulWidget {
|
||||
const RefreshIndicatorExample({Key? key, required this.title}) : super(key: key);
|
||||
const RefreshIndicatorExample({super.key, required this.title});
|
||||
|
||||
final String title;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const ReorderableApp());
|
||||
|
||||
class ReorderableApp extends StatelessWidget {
|
||||
const ReorderableApp({Key? key}) : super(key: key);
|
||||
const ReorderableApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -23,7 +23,7 @@ class ReorderableApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ReorderableExample extends StatefulWidget {
|
||||
const ReorderableExample({Key? key}) : super(key: key);
|
||||
const ReorderableExample({super.key});
|
||||
|
||||
@override
|
||||
State<ReorderableExample> createState() => _MyStatefulWidgetState();
|
||||
|
||||
@@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const ReorderableApp());
|
||||
|
||||
class ReorderableApp extends StatelessWidget {
|
||||
const ReorderableApp({Key? key}) : super(key: key);
|
||||
const ReorderableApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -24,7 +24,7 @@ class ReorderableApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ReorderableExample extends StatefulWidget {
|
||||
const ReorderableExample({Key? key}) : super(key: key);
|
||||
const ReorderableExample({super.key});
|
||||
|
||||
@override
|
||||
State<ReorderableExample> createState() => _ReorderableExampleState();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const ReorderableApp());
|
||||
|
||||
class ReorderableApp extends StatelessWidget {
|
||||
const ReorderableApp({Key? key}) : super(key: key);
|
||||
const ReorderableApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -23,7 +23,7 @@ class ReorderableApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ReorderableExample extends StatefulWidget {
|
||||
const ReorderableExample({Key? key}) : super(key: key);
|
||||
const ReorderableExample({super.key});
|
||||
|
||||
@override
|
||||
State<ReorderableExample> createState() => _ReorderableExampleState();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const ReorderableApp());
|
||||
|
||||
class ReorderableApp extends StatelessWidget {
|
||||
const ReorderableApp({Key? key}) : super(key: key);
|
||||
const ReorderableApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -25,7 +25,7 @@ class ReorderableApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ReorderableExample extends StatefulWidget {
|
||||
const ReorderableExample({Key? key}) : super(key: key);
|
||||
const ReorderableExample({super.key});
|
||||
|
||||
@override
|
||||
State<ReorderableExample> createState() => _ReorderableExampleState();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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();
|
||||
|
||||
@@ -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});
|
||||
|
||||
// This widget is the root of your application.
|
||||
@override
|
||||
@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyScaffoldBody extends StatelessWidget {
|
||||
const MyScaffoldBody({Key? key}) : super(key: key);
|
||||
const MyScaffoldBody({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -23,7 +23,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) {
|
||||
|
||||
@@ -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 = 'Flutter Code Sample';
|
||||
|
||||
@@ -28,7 +28,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) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user