feat: enhance RTextField by adding isFullHeight property for improved vertical layout control
This commit is contained in:
@@ -23,6 +23,7 @@ class RTextField extends StatefulWidget {
|
||||
final BoxConstraints? boxConstraints;
|
||||
final RTextFieldVariant variant;
|
||||
final bool filled;
|
||||
final bool isFullHeight;
|
||||
final Color? filledColor;
|
||||
final Color? borderColor;
|
||||
final bool showCounter;
|
||||
@@ -92,6 +93,7 @@ class RTextField extends StatefulWidget {
|
||||
this.prefixIcon,
|
||||
this.suffix,
|
||||
this.boxConstraints,
|
||||
this.isFullHeight = false,
|
||||
|
||||
// 📐 Layout & appearance
|
||||
this.borderColor,
|
||||
@@ -231,10 +233,10 @@ class _RTextFieldState extends State<RTextField> {
|
||||
decoration: InputDecoration(
|
||||
contentPadding: EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: widget.height / 3,
|
||||
vertical: widget.isFullHeight ? widget.height / 3 : 0,
|
||||
),
|
||||
errorStyle: widget.errorStyle,
|
||||
|
||||
errorStyle: widget.errorStyle,
|
||||
errorMaxLines: 1,
|
||||
isDense: widget.isDense,
|
||||
suffix: widget.suffix,
|
||||
|
||||
Reference in New Issue
Block a user