I have a simple TextField to get a number and checking if it contains a number less than 50. Note : keyboardType: TextInputType.number
Here is my how im doing it: