Commit 59f4e92b authored by K. P. Sroka's avatar K. P. Sroka Committed by Shi-Hao Hong

Update `onChange` docs to Radio and RadioListTile

Added note that onChange callback will not be invoked if the radio is already selected
parent 26d7f502
...@@ -129,6 +129,9 @@ class Radio<T> extends StatefulWidget { ...@@ -129,6 +129,9 @@ class Radio<T> extends StatefulWidget {
/// ///
/// If null, the radio button will be displayed as disabled. /// If null, the radio button will be displayed as disabled.
/// ///
/// The provided callback will not be invoked if this radio button is already
/// selected.
///
/// The callback provided to [onChanged] should update the state of the parent /// The callback provided to [onChanged] should update the state of the parent
/// [StatefulWidget] using the [State.setState] method, so that the parent /// [StatefulWidget] using the [State.setState] method, so that the parent
/// gets rebuilt; for example: /// gets rebuilt; for example:
......
...@@ -129,6 +129,9 @@ class RadioListTile<T> extends StatelessWidget { ...@@ -129,6 +129,9 @@ class RadioListTile<T> extends StatelessWidget {
/// ///
/// If null, the radio button will be displayed as disabled. /// If null, the radio button will be displayed as disabled.
/// ///
/// The provided callback will not be invoked if this radio button is already
/// selected.
///
/// The callback provided to [onChanged] should update the state of the parent /// The callback provided to [onChanged] should update the state of the parent
/// [StatefulWidget] using the [State.setState] method, so that the parent /// [StatefulWidget] using the [State.setState] method, so that the parent
/// gets rebuilt; for example: /// gets rebuilt; for example:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment