I have a text field where I want to limit the user input for a range. e.g. I want the first number is zero the second number is three or four . How can I achieve this in the text field? I can't find any argument to set this.
my code
TextFormField(
textAlign: TextAlign.center,
enableSuggestions: false,
autocorrect: false,
maxLength: 12,
inputFormatters: [ FilteringTextInputFormatter.digitsOnly],
keyboardType: TextInputType.number)
** Addition : i add this instruction but not working , what is the problem now
FilteringTextInputFormatter.deny(RegExp(r'^(?:[0][3-4])?[0-9]{12}$')),