How to include plus symbol to a numeric keyboard

Viewed 293

I was wondering how to implement in my application a TextFormField with a numeric keyboard that includes the plus("+") with the intention of including of facilitating the user to input international phone numbers.

 TextFormField(
    controller: phoneNumberController,
    keyboardType: TextInputType.number, // Fix to include plus symbol
),
1 Answers

change type TextInputType.number at TextInputType.phone

TextFormField(
    controller: phoneNumberController,
    keyboardType: TextInputType.phone, // Fix to include plus symbol
),
Related