From 459060036585540d7ecf05135cdff09f313f7f8e Mon Sep 17 00:00:00 2001 From: croro613 <88094492+croro613@users.noreply.github.com> Date: Fri, 19 Jul 2024 04:43:05 +0900 Subject: [PATCH] Fix WidgetStateTextStyle's doc (#151935) Fixes #151710 --- packages/flutter/lib/src/widgets/widget_state.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/widgets/widget_state.dart b/packages/flutter/lib/src/widgets/widget_state.dart index a479a617ff..83e6e7af92 100644 --- a/packages/flutter/lib/src/widgets/widget_state.dart +++ b/packages/flutter/lib/src/widgets/widget_state.dart @@ -598,17 +598,15 @@ abstract class WidgetStateOutlinedBorder extends OutlinedBorder implements Widge /// To use a [WidgetStateTextStyle], you can either: /// 1. Create a subclass of [WidgetStateTextStyle] and implement the abstract `resolve` method. /// 2. Use [WidgetStateTextStyle.resolveWith] and pass in a callback that -/// will be used to resolve the color in the given states. +/// will be used to resolve the text style in the given states. /// 3. Use [WidgetStateTextStyle.fromMap] to assign a style using a [WidgetStateMap]. /// /// If a [WidgetStateTextStyle] is used for a property or a parameter that doesn't -/// support resolving [WidgetStateProperty]s, then its default color +/// support resolving [WidgetStateProperty]s, then its default text style /// value will be used for all states. /// /// To define a `const` [WidgetStateTextStyle], you'll need to extend -/// [WidgetStateTextStyle] and override its [resolve] method. You'll also need -/// to provide a `defaultValue` to the super constructor, so that we can know -/// at compile-time what its default color is. +/// [WidgetStateTextStyle] and override its [resolve] method. /// See also: /// /// * [MaterialStateTextStyle], the Material specific version of