Skip to content

Commit

Permalink
Update onChange docs to Radio and RadioListTile
Browse files Browse the repository at this point in the history
Added note that onChange callback will not be invoked if the radio is already selected
  • Loading branch information
kpsroka authored and Shi-Hao Hong committed Apr 27, 2019
1 parent 26d7f50 commit 59f4e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/flutter/lib/src/material/radio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class Radio<T> extends StatefulWidget {
///
/// 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
/// [StatefulWidget] using the [State.setState] method, so that the parent
/// gets rebuilt; for example:
Expand Down
3 changes: 3 additions & 0 deletions packages/flutter/lib/src/material/radio_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class RadioListTile<T> extends StatelessWidget {
///
/// 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
/// [StatefulWidget] using the [State.setState] method, so that the parent
/// gets rebuilt; for example:
Expand Down

0 comments on commit 59f4e92

Please sign in to comment.