Skip to content

Commit 4590600

Browse files
authored
Fix WidgetStateTextStyle's doc (#151935)
Fixes #151710
1 parent b5030df commit 4590600

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,17 +598,15 @@ abstract class WidgetStateOutlinedBorder extends OutlinedBorder implements Widge
598598
/// To use a [WidgetStateTextStyle], you can either:
599599
/// 1. Create a subclass of [WidgetStateTextStyle] and implement the abstract `resolve` method.
600600
/// 2. Use [WidgetStateTextStyle.resolveWith] and pass in a callback that
601-
/// will be used to resolve the color in the given states.
601+
/// will be used to resolve the text style in the given states.
602602
/// 3. Use [WidgetStateTextStyle.fromMap] to assign a style using a [WidgetStateMap].
603603
///
604604
/// If a [WidgetStateTextStyle] is used for a property or a parameter that doesn't
605-
/// support resolving [WidgetStateProperty<TextStyle>]s, then its default color
605+
/// support resolving [WidgetStateProperty<TextStyle>]s, then its default text style
606606
/// value will be used for all states.
607607
///
608608
/// To define a `const` [WidgetStateTextStyle], you'll need to extend
609-
/// [WidgetStateTextStyle] and override its [resolve] method. You'll also need
610-
/// to provide a `defaultValue` to the super constructor, so that we can know
611-
/// at compile-time what its default color is.
609+
/// [WidgetStateTextStyle] and override its [resolve] method.
612610
/// See also:
613611
///
614612
/// * [MaterialStateTextStyle], the Material specific version of

0 commit comments

Comments
 (0)