From 4dc93f7c311cd8b6c590e9d25481cca773a31f77 Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Wed, 29 Dec 2021 12:27:18 +0200 Subject: [PATCH] fix issues with text fields --- .../shared/text_fields/app-textfield-custom.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/widgets/shared/text_fields/app-textfield-custom.dart b/lib/widgets/shared/text_fields/app-textfield-custom.dart index 769cd4f8..28331c6c 100644 --- a/lib/widgets/shared/text_fields/app-textfield-custom.dart +++ b/lib/widgets/shared/text_fields/app-textfield-custom.dart @@ -96,7 +96,7 @@ class _AppTextFieldCustomState extends State { Container( height: widget.height != 0 && widget.maxLines == 1 ? widget.height + 8 - : MediaQuery.of(context).size.height * 0.098, + : null,//MediaQuery.of(context).size.height * 0.098, decoration: widget.hasBorder ? TextFieldsUtils.containerBorderDecoration( Color(0Xffffffff), @@ -117,7 +117,7 @@ class _AppTextFieldCustomState extends State { padding: widget.dropDownText == null ? widget.isSearchTextField ? EdgeInsets.only(top: 10) - : EdgeInsets.only(top: 7.5) + : EdgeInsets.only(top: 0.5) : EdgeInsets.only(top: 0), // 8.0 child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -144,8 +144,7 @@ class _AppTextFieldCustomState extends State { height: widget.height != 0 && widget.maxLines == 1 ? widget.height - 22 - : MediaQuery.of(context).size.height * - 0.045, + : null, child: TextFormField( textAlign: projectViewModel.isArabic ? TextAlign.right @@ -156,8 +155,7 @@ class _AppTextFieldCustomState extends State { .textFieldSelectorDecoration( widget.hintText, null, true), style: TextStyle( - fontSize: - 14.0, //SizeConfig.textMultiplier * 1.7, + fontSize: SizeConfig.textMultiplier * 1.7, fontFamily: 'Poppins', color: Color(0xFF575757), fontWeight: FontWeight.w400,