Answers for "how to input only int in flutter"

8

input only numbers flutter

keyboardType: TextInputType.number
Posted by: Guest on July-09-2020
2

allow only integer input flutter

import 'package:flutter/services.dart';

new TextField(
	decoration: new InputDecoration(labelText: "Enter any number"),
	keyboardType: TextInputType.number,
	inputFormatters: <TextInputFormatter>[
    	FilteringTextInputFormatter.digitsOnly
	], // Only numbers can be entered in this input field
 ),
Posted by: Guest on May-20-2021

Code answers related to "how to input only int in flutter"

Browse Popular Code Answers by Language