From 6c2a29dd37d5bec38365ef2a05439d7723922253 Mon Sep 17 00:00:00 2001 From: Ayush Bherwani Date: Thu, 19 Mar 2020 21:56:02 +0530 Subject: [PATCH] [Api Docs] Improves contentPadding documentation in InputDecoration (#52807) --- .../lib/src/material/input_decorator.dart | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index 5e29f47a6e7..dc346ffbb28 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -2729,8 +2729,20 @@ class InputDecoration { /// [errorText], and [counterText]. /// /// By default the `contentPadding` reflects [isDense] and the type of the - /// [border]. If [isCollapsed] is true then `contentPadding` is - /// [EdgeInsets.zero]. + /// [border]. + /// + /// If [isCollapsed] is true then `contentPadding` is [EdgeInsets.zero]. + /// + /// If `isOutline` property of [border] is false and if [filled] is true then + /// `contentPadding` is `EdgeInsets.fromLTRB(12, 8, 12, 8)` when [isDense] + /// is true and `EdgeInsets.fromLTRB(12, 12, 12, 12)` when [isDense] is false`. + /// If `isOutline` property of [border] is false and if [filled] is false then + /// `contentPadding` is `EdgeInsets.fromLTRB(0, 8, 0, 8)` when [isDense] is + /// true and `EdgeInsets.fromLTRB(0, 12, 0, 12)` when [isDense] is false`. + /// + /// If `isOutline` property of [border] is true then `contentPaddding` is + /// `EdgeInsets.fromLTRB(12, 20, 12, 12)` when [isDense] is true + /// and `EdgeInsets.fromLTRB(12, 24, 12, 16)` when [isDense] is false. final EdgeInsetsGeometry contentPadding; /// Whether the decoration is the same size as the input field.