|
|
|
|
@ -71,7 +71,6 @@ class NewTextFields extends StatefulWidget {
|
|
|
|
|
this.onTap,
|
|
|
|
|
this.fontSize = 16.0,
|
|
|
|
|
this.fontWeight = FontWeight.w700,
|
|
|
|
|
this.autoValidate = false,
|
|
|
|
|
this.hintColor,this.isEnabled=true})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
@ -104,7 +103,6 @@ class NewTextFields extends StatefulWidget {
|
|
|
|
|
final bool keepPadding;
|
|
|
|
|
final TextCapitalization textCapitalization;
|
|
|
|
|
final List<TextInputFormatter> inputFormatters;
|
|
|
|
|
final bool autoValidate;
|
|
|
|
|
final EdgeInsets padding;
|
|
|
|
|
final bool focus;
|
|
|
|
|
final bool borderOnlyError;
|
|
|
|
|
@ -166,7 +164,6 @@ class _NewTextFieldsState extends State<NewTextFields> {
|
|
|
|
|
initialValue: widget.initialValue,
|
|
|
|
|
keyboardAppearance: Theme.of(context).brightness,
|
|
|
|
|
scrollPhysics: BouncingScrollPhysics(),
|
|
|
|
|
autovalidate: widget.autoValidate,
|
|
|
|
|
textCapitalization: widget.textCapitalization,
|
|
|
|
|
onFieldSubmitted: widget.inputAction == TextInputAction.next
|
|
|
|
|
? (widget.onSubmit != null
|
|
|
|
|
@ -196,7 +193,7 @@ class _NewTextFieldsState extends State<NewTextFields> {
|
|
|
|
|
.copyWith(fontSize: widget.fontSize, fontWeight: widget.fontWeight),
|
|
|
|
|
inputFormatters: widget.keyboardType == TextInputType.phone
|
|
|
|
|
? <TextInputFormatter>[
|
|
|
|
|
WhitelistingTextInputFormatter.digitsOnly,
|
|
|
|
|
FilteringTextInputFormatter.digitsOnly,
|
|
|
|
|
_mobileFormatter,
|
|
|
|
|
]
|
|
|
|
|
: widget.inputFormatters,
|
|
|
|
|
|