How to create Number input in TextField

There is a property keyboardType to open Numeric Keyboard, here is the syntax :

TextField(
            decoration: InputDecoration(
               labelText: "Enter your number"),
            keyboardType: TextInputType.number,
),
Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *