This commit is contained in:
2024-10-18 17:23:30 +02:00
parent 977df83c36
commit 8ab4ef360a
56 changed files with 210 additions and 207 deletions

View File

@@ -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';