|
|
|
|
@ -96,7 +96,7 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
Container(
|
|
|
|
|
height: widget.height != 0 && widget.maxLines == 1
|
|
|
|
|
? widget.height + 8
|
|
|
|
|
: null,
|
|
|
|
|
: MediaQuery.of(context).size.height * 0.098,
|
|
|
|
|
decoration: widget.hasBorder
|
|
|
|
|
? TextFieldsUtils.containerBorderDecoration(
|
|
|
|
|
Color(0Xffffffff),
|
|
|
|
|
@ -106,7 +106,7 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.only(top: 4.0, bottom: 4.0, left: 8.0, right: 8.0),
|
|
|
|
|
EdgeInsets.only(top: 4.0, bottom: 0.0, left: 8.0, right: 8.0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: widget.onClick ?? null,
|
|
|
|
|
child: Row(
|
|
|
|
|
@ -123,28 +123,29 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
if ((widget.controller != null &&
|
|
|
|
|
widget.controller.text != "") ||
|
|
|
|
|
widget.dropDownText != null)
|
|
|
|
|
AppText(
|
|
|
|
|
widget.hintText,
|
|
|
|
|
// marginTop: widget.hasHintmargin ? 0 : 30,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: widget.isPrscription == false
|
|
|
|
|
? 11.0
|
|
|
|
|
// SizeConfig.getHeightMultiplier() *
|
|
|
|
|
// (SizeConfig.isWidthLarge ? 1.1 : 1.3)
|
|
|
|
|
: 0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.44,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
// if ((widget.controller != null &&
|
|
|
|
|
// widget.controller.text != "") ||
|
|
|
|
|
// widget.dropDownText != null)
|
|
|
|
|
AppText(
|
|
|
|
|
widget.hintText,
|
|
|
|
|
// marginTop: widget.hasHintmargin ? 0 : 30,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: widget.isPrscription == false
|
|
|
|
|
? 11.0
|
|
|
|
|
// SizeConfig.getHeightMultiplier() *
|
|
|
|
|
// (SizeConfig.isWidthLarge ? 1.1 : 1.3)
|
|
|
|
|
: 0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.44,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
widget.dropDownText == null
|
|
|
|
|
? Container(
|
|
|
|
|
height:
|
|
|
|
|
widget.height != 0 && widget.maxLines == 1
|
|
|
|
|
? widget.height - 22
|
|
|
|
|
: null,
|
|
|
|
|
: MediaQuery.of(context).size.height *
|
|
|
|
|
0.045,
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
textAlign: projectViewModel.isArabic
|
|
|
|
|
? TextAlign.right
|
|
|
|
|
|