multiline text overflow fix
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user