mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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
This commit is contained in:
parent
e13e9a08e1
commit
b8f89f70bf
@ -2798,6 +2798,9 @@ class InputDecoration {
|
|||||||
/// of [InputDecoration] that changes the color of the label to the
|
/// of [InputDecoration] that changes the color of the label to the
|
||||||
/// [InputDecoration.errorStyle] color or [ColorScheme.error].
|
/// [InputDecoration.errorStyle] color or [ColorScheme.error].
|
||||||
///
|
///
|
||||||
|
/// When the input field receives focus, the font size of [InputDecoration.label] is
|
||||||
|
/// scaled down by 75%.
|
||||||
|
///
|
||||||
/// {@tool dartpad}
|
/// {@tool dartpad}
|
||||||
/// It's possible to override the label style for just the error state, or
|
/// It's possible to override the label style for just the error state, or
|
||||||
/// just the default state, or both.
|
/// just the default state, or both.
|
||||||
|
Loading…
Reference in New Issue
Block a user