Have a nice day, guys!

I have a Flutter source code using Firebase for Phone Authentication when users signup/signin. But users have to wrire full phone number with country code. It's annoyed!

Specific situation:

My app for Vietnam with country code is +84 only. Length of Vietnamese phone number is 10.

I want +84 to be default country code and users write their standard phone number only (example 0912345678).

So please tell me what files I have to edit in this source code to make default country code before phone number in number field.

Thank you very much!


Solution 1: Xetoo

Try below code:

TextFormField(
  inputFormatters: [
    FilteringTextInputFormatter.deny(RegExp(r'[+]')),
  ],
)