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:
Kishan Rathore 2024-08-21 23:26:16 +05:30 committed by GitHub
parent e13e9a08e1
commit b8f89f70bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.