From 86814cabc49463a9684277cf37b7409f4fd54d2f Mon Sep 17 00:00:00 2001 From: Haeseok Lee Date: Thu, 27 Aug 2020 12:43:05 +0900 Subject: [PATCH] Fixed the description of the focusColor property included in input_decorator (#63981) --- .../lib/src/material/input_decorator.dart | 27 +++---------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index 3ab3045822..a08494f053 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -1823,9 +1823,7 @@ class InputDecorator extends StatefulWidget { /// Whether the input field has focus. /// /// Determines the position of the label text and the color and weight of the - /// border, as well as the container fill color, which is a blend of - /// [InputDecoration.focusColor] with [InputDecoration.fillColor] when - /// focused, and [InputDecoration.fillColor] when not. + /// border. /// /// Defaults to false. /// @@ -1843,12 +1841,6 @@ class InputDecorator extends StatefulWidget { /// true, and [InputDecoration.fillColor] when not. /// /// Defaults to false. - /// - /// See also: - /// - /// * [InputDecoration.focusColor], which is also blended into the hover - /// color and fill color when [isFocused] is true to produce the final - /// color. final bool isHovering; /// If true, the height of the input field will be as large as possible. @@ -3067,8 +3059,7 @@ class InputDecoration { /// If true the decoration's container is filled with [fillColor]. /// - /// When [InputDecorator.isFocused] is true, the [focusColor] is also blended into the final - /// fill color. When [InputDecorator.isHovering] is true, the [hoverColor] is also blended + /// When [InputDecorator.isHovering] is true, the [hoverColor] is also blended /// into the final fill color. /// /// Typically this field set to true if [border] is an @@ -3084,8 +3075,7 @@ class InputDecoration { /// The base fill color of the decoration's container color. /// - /// When [InputDecorator.isFocused] is true, the [focusColor] is also blended - /// into the final fill color. When [InputDecorator.isHovering] is true, the + /// When [InputDecorator.isHovering] is true, the /// [hoverColor] is also blended into the final fill color. /// /// By default the fillColor is based on the current [Theme]. @@ -3093,16 +3083,8 @@ class InputDecoration { /// The decoration's container is the area which is filled if [filled] is true /// and bordered per the [border]. It's the area adjacent to [icon] and above /// the widgets that contain [helperText], [errorText], and [counterText]. - /// - /// This color is blended with [focusColor] if the decoration is focused. final Color fillColor; - /// The color to blend with [fillColor] and fill the decoration's container - /// with, if [filled] is true and the container has input focus. - /// - /// When [InputDecorator.isHovering] is true, the [hoverColor] is also blended into the final - /// fill color. - /// /// By default the [focusColor] is based on the current [Theme]. /// /// The decoration's container is the area which is filled if [filled] is @@ -3115,8 +3097,7 @@ class InputDecoration { /// is being hovered over by a mouse. /// /// If [filled] is true, the color is blended with [fillColor] and fills the - /// decoration's container. When [InputDecorator.isFocused] is true, the - /// [focusColor] is also blended into the final fill color. + /// decoration's container. /// /// If [filled] is false, and [InputDecorator.isFocused] is false, the color /// is blended over the [enabledBorder]'s color.