From 298ff190eca6b82fca869ed441d942a0b4c4d947 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 16 Sep 2023 15:26:35 -0400 Subject: [PATCH] Bugfix: HTML Source was broken (could not add apps) --- lib/app_sources/html.dart | 3 +++ lib/main.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/app_sources/html.dart b/lib/app_sources/html.dart index 8676af9..c2ff364 100644 --- a/lib/app_sources/html.dart +++ b/lib/app_sources/html.dart @@ -123,6 +123,9 @@ class HTML extends AppSource { textInputType: const TextInputType.numberWithOptions(), additionalValidators: [ (value) { + if (value?.isEmpty == true) { + value = null; + } value ??= '1'; return intValidator(value); } diff --git a/lib/main.dart b/lib/main.dart index 743ac01..ad48463 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.14.16'; +const String currentVersion = '0.14.17'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/pubspec.yaml b/pubspec.yaml index e9b2153..25f11d0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.14.16+208 # When changing this, update the tag in main() accordingly +version: 0.14.17+209 # When changing this, update the tag in main() accordingly environment: sdk: '>=3.0.0 <4.0.0'