Initial
This commit is contained in:
@@ -136,7 +136,7 @@ class ExpectationInputPageState extends State<ExpectationInputPage> {
|
||||
// Example: Validate numerical fields if they are not empty
|
||||
if (value != null && value.isNotEmpty) {
|
||||
if (keyboardType == TextInputType.number ||
|
||||
keyboardType == TextInputType.numberWithOptions(decimal: true)) {
|
||||
keyboardType == const TextInputType.numberWithOptions(decimal: true)) {
|
||||
final number = double.tryParse(value);
|
||||
if (number == null) {
|
||||
return 'Please enter a valid number';
|
||||
|
||||
Reference in New Issue
Block a user