Final chapter: migrate api doc samples to super-parameters (#104007)
This commit is contained in:
committed by
GitHub
parent
7fdf747723
commit
2cbad4b3ae
@@ -7,7 +7,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ShowSharedValue extends StatelessWidget {
|
||||
const ShowSharedValue({ Key? key, required this.appDataKey }) : super(key: key);
|
||||
const ShowSharedValue({ super.key, required this.appDataKey });
|
||||
|
||||
final String appDataKey;
|
||||
|
||||
@@ -25,7 +25,7 @@ class ShowSharedValue extends StatelessWidget {
|
||||
// to be rebuilt. In this case that's the ShowSharedValue widget that's
|
||||
// displaying the value of a key whose value has been updated.
|
||||
class Home extends StatefulWidget {
|
||||
const Home({ Key? key }) : super(key: key);
|
||||
const Home({ super.key });
|
||||
|
||||
@override
|
||||
State<Home> createState() => _HomeState();
|
||||
|
||||
@@ -34,7 +34,7 @@ class SharedObject {
|
||||
// An example of a widget which depends on the SharedObject's value,
|
||||
// which might be provided - along with SharedObject - in a Dart package.
|
||||
class CustomWidget extends StatelessWidget {
|
||||
const CustomWidget({ Key? key }) : super(key: key);
|
||||
const CustomWidget({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -49,7 +49,7 @@ class CustomWidget extends StatelessWidget {
|
||||
}
|
||||
|
||||
class Home extends StatelessWidget {
|
||||
const Home({ Key? key }) : super(key: key);
|
||||
const Home({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user