Closed tatsuyafujisaki closed 10 months ago
https://codelabs.developers.google.com/codelabs/mdc-101-flutter#4
If we passed null, or didn't include the field (which then defaults to null), the buttons would become disabled.
Please consider replacing the above sentence with the following.
If we passed null, the buttons would become disabled.
Because if you don't include the onPressed field, you will get the following error and you won't even see the button disabled.
onPressed
The named parameter 'onPressed' is required, but there's no corresponding argument.
Good idea, will be updated soon.
https://codelabs.developers.google.com/codelabs/mdc-101-flutter#4
Please consider replacing the above sentence with the following.
Because if you don't include the
onPressed
field, you will get the following error and you won't even see the button disabled.