From 047cfe2cd98e50823bb053f8c7e7e6eadc71b942 Mon Sep 17 00:00:00 2001 From: "Michael W. Aziz" Date: Sat, 20 Dec 2025 21:35:49 +0200 Subject: [PATCH] [FIX] Action field longer padding. --- lib/src/Fields/src/base.dart | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/lib/src/Fields/src/base.dart b/lib/src/Fields/src/base.dart index 910bb1c..7cb01b6 100644 --- a/lib/src/Fields/src/base.dart +++ b/lib/src/Fields/src/base.dart @@ -422,33 +422,7 @@ class _AstromicFieldBaseState extends State { ); }, ), - widget.fieldStackedWidget != null - ? Builder(builder: (c) { - // Calculate the actual height of the TextFormField including padding and border - double contentHeight = _getTextHeight( - _textController.text.isNotEmpty - ? _textController.text - : (widget.hint?.isNotEmpty ?? false) - ? widget.hint! - : '', - _style().textStyle ?? Theme.of(c).textTheme.titleMedium!, - _finalTextDirection(), - ); - double verticalPadding = _finalVerticalPadding(_style()).vertical * 2; - double borderWidth = _style().borderWidth ?? 0; // Default to 0 if null - - double totalFieldHeight; - if (_config.isFixedHeight && !_config.isTextArea) { - totalFieldHeight = _style().fixedHeight ?? contentHeight + verticalPadding + (borderWidth * 2); - } else if (_config.isFixedHeight && _config.isTextArea) { - totalFieldHeight = _style().fixedHeight ?? contentHeight + verticalPadding + (borderWidth * 2); - } else { - totalFieldHeight = contentHeight + verticalPadding + (borderWidth * 2); - } - - return widget.fieldStackedWidget!(totalFieldHeight, _finalBorderShape(_style())); - }) - : Container(), + widget.fieldStackedWidget != null ? widget.fieldStackedWidget!(_finalVerticalPadding(_style(), forceRespectBorder: _config.respectBorderWidthPadding).vertical * 2, _finalBorderShape(_style())) : Container(), ], ), ),