| Index: sky/sdk/lib/widgets/README.md
|
| diff --git a/sky/sdk/lib/widgets/README.md b/sky/sdk/lib/widgets/README.md
|
| index 3ddfb85aadcdb6e5a9d6b069c85a2a80b0d8ac01..e6077549058503d59689efd9f0cdb3ab8b7f3ea7 100644
|
| --- a/sky/sdk/lib/widgets/README.md
|
| +++ b/sky/sdk/lib/widgets/README.md
|
| @@ -254,8 +254,8 @@ class MyCheckbox extends Component {
|
| }
|
| }
|
|
|
| -class MyDialog extends Component {
|
| - MyDialog({ this.onDismissed }) : super(stateful: true);
|
| +class MyDialog extends StatefulComponent {
|
| + MyDialog({ this.onDismissed });
|
|
|
| Function onDismissed;
|
| bool _checkboxValue = false;
|
| @@ -298,8 +298,7 @@ component persists for the lifetime of the application.
|
| The `MyDialog` component is more complicated because it is a stateful component.
|
| Let's walk through the differences in `MyDialog` caused by its being stateful:
|
|
|
| - * `MyDialog` passes `stateful: true` to the `Component` constructor, marking
|
| - the component stateful.
|
| + * `MyDialog` extends StatefulComponent instead of Component.
|
|
|
| * `MyDialog` has non-`final` member variables. Over the lifetime of the dialog,
|
| we'll need to modify the values of these member variables, which means we
|
|
|