Skip to content

Commit 0c692b8

Browse files
authored
Update WidgetStatesController docs (#150081)
Just updated the docs that mentioned the old name (`MaterialStatesController`) that now is another class. It was showing in the [docs website](https://api.flutter.dev/flutter/widgets/WidgetStatesController-class.html) with the deprecated line-through style so I noticed it.
1 parent 04dc553 commit 0c692b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/flutter/lib/src/widgets/widget_state.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ class WidgetStatePropertyAll<T> implements WidgetStateProperty<T> {
643643
/// or loses the focus it will [update] its controller's [value] and
644644
/// notify listeners of the change.
645645
///
646-
/// When calling `setState` in a [MaterialStatesController] listener, use the
646+
/// When calling `setState` in a [WidgetStatesController] listener, use the
647647
/// [SchedulerBinding.addPostFrameCallback] to delay the call to `setState` after
648648
/// the frame has been rendered. It's generally prudent to use the
649649
/// [SchedulerBinding.addPostFrameCallback] because some of the widgets that
650-
/// depend on [MaterialStatesController] may call [update] in their build method.
650+
/// depend on [WidgetStatesController] may call [update] in their build method.
651651
/// In such cases, listener's that call `setState` - during the build phase - will cause
652652
/// an error.
653653
///

0 commit comments

Comments
 (0)