|
|
|
|
@ -32,7 +32,7 @@ class AppTextFieldCustom extends StatefulWidget {
|
|
|
|
|
final bool focus;
|
|
|
|
|
|
|
|
|
|
///TODO Rename it to isCustomSearchablFiels
|
|
|
|
|
final bool hasHintmargin;
|
|
|
|
|
final bool isSearchTextField;
|
|
|
|
|
|
|
|
|
|
AppTextFieldCustom({
|
|
|
|
|
this.height = 0,
|
|
|
|
|
@ -54,7 +54,7 @@ class AppTextFieldCustom extends StatefulWidget {
|
|
|
|
|
this.isPrscription = false,
|
|
|
|
|
this.isSecure = false,
|
|
|
|
|
this.focus = false,
|
|
|
|
|
this.hasHintmargin = false,
|
|
|
|
|
this.isSearchTextField = false,
|
|
|
|
|
this.onFieldSubmitted,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -116,7 +116,7 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: widget.dropDownText == null
|
|
|
|
|
? widget.hasHintmargin
|
|
|
|
|
? widget.isSearchTextField
|
|
|
|
|
? EdgeInsets.only(top: 10)
|
|
|
|
|
: EdgeInsets.symmetric(vertical: 0)
|
|
|
|
|
: EdgeInsets.symmetric(vertical: 0), // 8.0
|
|
|
|
|
@ -191,7 +191,7 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
|
|
|
|
|
? widget.suffixIcon != null
|
|
|
|
|
? Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
bottom: widget.hasHintmargin
|
|
|
|
|
bottom: widget.isSearchTextField
|
|
|
|
|
? (widget.controller.text.isEmpty ||
|
|
|
|
|
widget.controller == null)
|
|
|
|
|
? 10
|
|
|
|
|
|