From 0c692b86ba5e078b10d5c952556fd4e794131f5e Mon Sep 17 00:00:00 2001 From: FMorschel <52160996+FMorschel@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:41:14 -0300 Subject: [PATCH] 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. --- packages/flutter/lib/src/widgets/widget_state.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/widget_state.dart b/packages/flutter/lib/src/widgets/widget_state.dart index 9e4b5d924a..c86d4b86b1 100644 --- a/packages/flutter/lib/src/widgets/widget_state.dart +++ b/packages/flutter/lib/src/widgets/widget_state.dart @@ -643,11 +643,11 @@ class WidgetStatePropertyAll implements WidgetStateProperty { /// or loses the focus it will [update] its controller's [value] and /// notify listeners of the change. /// -/// When calling `setState` in a [MaterialStatesController] listener, use the +/// When calling `setState` in a [WidgetStatesController] listener, use the /// [SchedulerBinding.addPostFrameCallback] to delay the call to `setState` after /// the frame has been rendered. It's generally prudent to use the /// [SchedulerBinding.addPostFrameCallback] because some of the widgets that -/// depend on [MaterialStatesController] may call [update] in their build method. +/// depend on [WidgetStatesController] may call [update] in their build method. /// In such cases, listener's that call `setState` - during the build phase - will cause /// an error. ///