remove http only check and only pop on open success
This commit is contained in:
+5
-11
@@ -50,6 +50,10 @@ class OpenSharedContent extends HookConsumerWidget {
|
|||||||
container: Value(selectedContainer.value),
|
container: Value(selectedContainer.value),
|
||||||
launchedFromIntent: true,
|
launchedFromIntent: true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (context.mounted) {
|
||||||
|
context.pop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,11 +87,7 @@ class OpenSharedContent extends HookConsumerWidget {
|
|||||||
minLines: 1,
|
minLines: 1,
|
||||||
maxLines: 10,
|
maxLines: 10,
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
return validateUrl(
|
return validateUrl(value, eagerParsing: false);
|
||||||
value,
|
|
||||||
onlyHttpProtocol: true,
|
|
||||||
eagerParsing: false,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -96,9 +96,6 @@ class OpenSharedContent extends HookConsumerWidget {
|
|||||||
leading: const Icon(MdiIcons.tab),
|
leading: const Icon(MdiIcons.tab),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await openTab(false);
|
await openTab(false);
|
||||||
if (context.mounted) {
|
|
||||||
context.pop();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
@@ -106,9 +103,6 @@ class OpenSharedContent extends HookConsumerWidget {
|
|||||||
leading: const Icon(MdiIcons.tabUnselected),
|
leading: const Icon(MdiIcons.tabUnselected),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await openTab(true);
|
await openTab(true);
|
||||||
if (context.mounted) {
|
|
||||||
context.pop();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user