From b8f89f70bf4e8c304fc909b58e23f2358983bb41 Mon Sep 17 00:00:00 2001 From: Kishan Rathore <34465683+rkishan516@users.noreply.github.com> Date: Wed, 21 Aug 2024 23:26:16 +0530 Subject: [PATCH] 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 --- packages/flutter/lib/src/material/input_decorator.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index 7afb9803cac..87551962072 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -2798,6 +2798,9 @@ class InputDecoration { /// of [InputDecoration] that changes the color of the label to the /// [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} /// It's possible to override the label style for just the error state, or /// just the default state, or both.