forked from yaso_meth/mih-project
multiline text overflow fix
This commit is contained in:
@@ -361,6 +361,10 @@ class _PackageToolOneState extends State<PackageToolOne> {
|
||||
multiLineInput: true,
|
||||
requiredText: false,
|
||||
hintText: "Enter Multi Line Text",
|
||||
validator: (value) {
|
||||
return MihValidationServices()
|
||||
.validateLength(_textFieldFourController.text, 50);
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
Align(
|
||||
|
||||
@@ -87,10 +87,12 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final isMultiline = widget.multiLineInput == true;
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: widget.width,
|
||||
height: widget.height,
|
||||
// height: widget.height,
|
||||
height: isMultiline ? null : widget.height,
|
||||
child: Theme(
|
||||
data: Theme.of(context).copyWith(
|
||||
textSelectionTheme: TextSelectionThemeData(
|
||||
|
||||
Reference in New Issue
Block a user