|
|
|
@ -71,8 +71,8 @@ class NewTextFields extends StatefulWidget {
|
|
|
|
|
this.prefixIcon,
|
|
|
|
|
this.bare = false,
|
|
|
|
|
this.onTap,
|
|
|
|
|
this.fontSize = 16.0,
|
|
|
|
|
this.fontWeight = FontWeight.w700,
|
|
|
|
|
this.fontSize = 15.0,
|
|
|
|
|
this.fontWeight = FontWeight.w500,
|
|
|
|
|
this.autoValidate = false,
|
|
|
|
|
this.hintColor,
|
|
|
|
|
this.isEnabled = true})
|
|
|
|
@ -197,7 +197,7 @@ class _NewTextFieldsState extends State<NewTextFields> {
|
|
|
|
|
validator: widget.validator,
|
|
|
|
|
onSaved: widget.onSaved,
|
|
|
|
|
style: Theme.of(context).textTheme.body2.copyWith(
|
|
|
|
|
fontSize: widget.fontSize, fontWeight: widget.fontWeight),
|
|
|
|
|
fontSize: widget.fontSize, fontWeight: widget.fontWeight, color: Color(0xFF575757), fontFamily: 'Poppins'),
|
|
|
|
|
inputFormatters: widget.keyboardType == TextInputType.phone
|
|
|
|
|
? <TextInputFormatter>[
|
|
|
|
|
WhitelistingTextInputFormatter.digitsOnly,
|
|
|
|
@ -207,7 +207,7 @@ class _NewTextFieldsState extends State<NewTextFields> {
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
labelText: widget.hintText,
|
|
|
|
|
labelStyle:
|
|
|
|
|
TextStyle(color: Theme.of(context).textTheme.bodyText1.color),
|
|
|
|
|
TextStyle(color: Color(0xFF2E303A), fontSize:15,fontWeight: FontWeight.w700),
|
|
|
|
|
errorBorder: OutlineInputBorder(
|
|
|
|
|
borderSide: BorderSide(
|
|
|
|
|
color: Theme.of(context).errorColor.withOpacity(0.5),
|
|
|
|
|