|
|
|
@ -102,7 +102,8 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
Color(0Xffffffff),
|
|
|
|
|
widget.validationError == null
|
|
|
|
|
? Color(0xFFEFEFEF)
|
|
|
|
|
: Colors.red.shade700)
|
|
|
|
|
: Colors.red.shade700,
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.only(top: 4.0, bottom: 4.0, left: 8.0, right: 8.0),
|
|
|
|
@ -116,8 +117,8 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
padding: widget.dropDownText == null
|
|
|
|
|
? widget.isSearchTextField
|
|
|
|
|
? EdgeInsets.only(top: 10)
|
|
|
|
|
: EdgeInsets.symmetric(vertical: 0)
|
|
|
|
|
: EdgeInsets.symmetric(vertical: 0), // 8.0
|
|
|
|
|
: EdgeInsets.only(top: 7.5)
|
|
|
|
|
: EdgeInsets.only(top: 0), // 8.0
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
@ -135,6 +136,8 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
// (SizeConfig.isWidthLarge ? 1.1 : 1.3)
|
|
|
|
|
: 0,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
letterSpacing: -0.44,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
widget.dropDownText == null
|
|
|
|
|
? Container(
|
|
|
|
@ -147,14 +150,17 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
? TextAlign.right
|
|
|
|
|
: TextAlign.left,
|
|
|
|
|
focusNode: _focusNode,
|
|
|
|
|
textAlignVertical: TextAlignVertical.center,
|
|
|
|
|
textAlignVertical: TextAlignVertical.top,
|
|
|
|
|
decoration: TextFieldsUtils
|
|
|
|
|
.textFieldSelectorDecoration(
|
|
|
|
|
widget.hintText, null, true),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
fontSize:
|
|
|
|
|
14.0, //SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
letterSpacing: -0.56,
|
|
|
|
|
),
|
|
|
|
|
controller: widget.controller,
|
|
|
|
|
keyboardType: widget.inputType ??
|
|
|
|
@ -203,7 +209,8 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
Icons.keyboard_arrow_down,
|
|
|
|
|
color: widget.dropDownColor != null
|
|
|
|
|
? widget.dropDownColor
|
|
|
|
|
: Colors.black,
|
|
|
|
|
: Color(0xff2E303A),
|
|
|
|
|
size: 12.0,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|