diff --git a/app/lib/features/web_feed/presentation/add_feed_dialog.dart b/app/lib/features/web_feed/presentation/add_feed_dialog.dart index fc608593..a3fd6c17 100644 --- a/app/lib/features/web_feed/presentation/add_feed_dialog.dart +++ b/app/lib/features/web_feed/presentation/add_feed_dialog.dart @@ -53,7 +53,11 @@ class AddFeedDialog extends HookConsumerWidget { controller: textController, keyboardType: TextInputType.url, validator: (value) { - return validateUrl(value, onlyHttpProtocol: true); + return validateUrl( + value, + onlyHttpProtocol: true, + eagerParsing: false, + ); }, ), ), diff --git a/app/lib/features/web_feed/presentation/screens/feed_edit.dart b/app/lib/features/web_feed/presentation/screens/feed_edit.dart index d4e3bee1..9fd4836a 100644 --- a/app/lib/features/web_feed/presentation/screens/feed_edit.dart +++ b/app/lib/features/web_feed/presentation/screens/feed_edit.dart @@ -233,6 +233,7 @@ class _FeedEditContent extends HookConsumerWidget { value, onlyHttpProtocol: true, required: false, + eagerParsing: false, ); }, ), @@ -249,6 +250,7 @@ class _FeedEditContent extends HookConsumerWidget { value, onlyHttpProtocol: true, required: false, + eagerParsing: false, ); }, ), @@ -269,7 +271,11 @@ class _FeedEditContent extends HookConsumerWidget { controller: urlTextController, autovalidateMode: AutovalidateMode.onUserInteraction, validator: (value) { - return validateUrl(value, onlyHttpProtocol: true); + return validateUrl( + value, + onlyHttpProtocol: true, + eagerParsing: false, + ); }, ), ], diff --git a/app/lib/utils/form_validators.dart b/app/lib/utils/form_validators.dart index 1fe2fa5f..250a8546 100644 --- a/app/lib/utils/form_validators.dart +++ b/app/lib/utils/form_validators.dart @@ -22,8 +22,8 @@ import 'package:weblibre/utils/uri_parser.dart' as uri_parser; String? validateUrl( String? value, { + required bool eagerParsing, bool requireAuthority = true, - bool eagerParsing = true, bool onlyHttpProtocol = false, bool required = true, }) {