mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
return null
This commit is contained in:
@@ -45,10 +45,10 @@ class SourcePage extends HookConsumerWidget {
|
||||
autofillHints: const [AutofillHints.url],
|
||||
required: true,
|
||||
validator: (value, label) {
|
||||
if (Uri.tryParse(value!)?.isAbsolute == false ||
|
||||
!value.contains('http')) {
|
||||
if (!value!.contains(RegExp(r'https?:\/\/'))) {
|
||||
return '$label must be a valid URL';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
);
|
||||
final username = LabeledTextField(
|
||||
|
||||
Reference in New Issue
Block a user