[FIX] Action field longer padding.
This commit is contained in:
@@ -422,33 +422,7 @@ class _AstromicFieldBaseState extends State<AstromicFieldBase> {
|
||||
);
|
||||
},
|
||||
),
|
||||
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(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user