Shistastic
Shistastic

Reputation: 319

How to include plus symbol to a numeric keyboard

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
),

Upvotes: 1

Views: 1292

Answers (1)

change type TextInputType.number at TextInputType.phone

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

Upvotes: 4

Related Questions