multiline text overflow fix

This commit is contained in:
2025-07-03 14:54:30 +02:00
parent 25ee295394
commit af44aa3149
2 changed files with 7 additions and 1 deletions

View File

@@ -361,6 +361,10 @@ class _PackageToolOneState extends State<PackageToolOne> {
multiLineInput: true, multiLineInput: true,
requiredText: false, requiredText: false,
hintText: "Enter Multi Line Text", hintText: "Enter Multi Line Text",
validator: (value) {
return MihValidationServices()
.validateLength(_textFieldFourController.text, 50);
},
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
Align( Align(

View File

@@ -87,10 +87,12 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isMultiline = widget.multiLineInput == true;
return Center( return Center(
child: SizedBox( child: SizedBox(
width: widget.width, width: widget.width,
height: widget.height, // height: widget.height,
height: isMultiline ? null : widget.height,
child: Theme( child: Theme(
data: Theme.of(context).copyWith( data: Theme.of(context).copyWith(
textSelectionTheme: TextSelectionThemeData( textSelectionTheme: TextSelectionThemeData(