Answers for "only allow one number in textfield flutter"

3

flutter textfield number only

import 'package:flutter/services.dart';

keyboardType: TextInputType.number,
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
Posted by: Guest on March-20-2021
0

how to allow only characters and numbers in textfield flutter

inputFormatters: [new  WhitelistingTextInputFormatter(RegExp("[a-zA-Z0-9]")),],
Posted by: Guest on June-04-2021

Code answers related to "only allow one number in textfield flutter"

Browse Popular Code Answers by Language