You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm start programing flutter 2 days ago, this is a cool project but if i need to remove the mask to do a request, the text is seted to ""
staticString maskCnpj ="00.000.000/0000-00";
final _cnpj =MaskedTextController(mask: maskCnpj);
final _user =TextEditingController();
final _password =TextEditingController();
voidonClick() {
print("potato");
if (_formkey.currentState.validate()) {
print(_cnpj.text); //out 12.345.678/9101-11print(_user.text);
print(_password.text);
}
}
i try remove mask with .updateMask("") but this clean the field; ok : Im noob.
after the i remove the mask with .updateMask("00000000000000") <- THIS WORKS BUT is not cool
staticString maskCnpj ="00.000.000/0000-00";
final _cnpj =MaskedTextController(mask: maskCnpj);
final _user =TextEditingController();
final _password =TextEditingController();
voidonClick() {
print("potato");
if (_formkey.currentState.validate()) {
_cnpj.updateMask("00000000000000");
print(_cnpj.text);
_cnpj.updateMask(maskCnpj);
print(_user.text);
print(_password.text);
}
}
maybe add a var.textNoMask will be awesome
tansk's for attention
The text was updated successfully, but these errors were encountered:
i'm start programing flutter 2 days ago, this is a cool project but if i need to remove the mask to do a request, the text is seted to ""
i try remove mask with
.updateMask("")
but this clean the field; ok : Im noob.after the i remove the mask with
.updateMask("00000000000000")
<- THIS WORKS BUT is not coolmaybe add a var.textNoMask will be awesome
tansk's for attention
The text was updated successfully, but these errors were encountered: