Skip to content

Commit b8f89f7

Browse files
authored
docs: Update doc for scale behaviour of floating label (#151835)
In input decoration if we are showing label as floating when it is focused, it scales down to `_kFinalLabelScale` i.e. 0.75 right now, but it was not mentioned anywhere. Resolves #151406
1 parent e13e9a0 commit b8f89f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/flutter/lib/src/material/input_decorator.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,6 +2798,9 @@ class InputDecoration {
27982798
/// of [InputDecoration] that changes the color of the label to the
27992799
/// [InputDecoration.errorStyle] color or [ColorScheme.error].
28002800
///
2801+
/// When the input field receives focus, the font size of [InputDecoration.label] is
2802+
/// scaled down by 75%.
2803+
///
28012804
/// {@tool dartpad}
28022805
/// It's possible to override the label style for just the error state, or
28032806
/// just the default state, or both.

0 commit comments

Comments
 (0)