Good Morning, I was working on this template and i have come to a problem. I can’t find any solutions online to fix the problem. I am getting an error at URLRequest(url: Uri.parse(selectedUrl!)). Error is saying that it is The argument type ‘Uri’ can’t be assigned to the parameter type ‘WebUri?’. How do I fix the error?
Error: the argument type ‘Uri’ can’t be assigned to the parameter type ‘WebUri?’.
await browser?.openUrlRequest(
urlRequest: URLRequest(url: Uri.parse(selectedUrl!)),
options: InAppBrowserClassOptions(
crossPlatform:
InAppBrowserOptions(hideUrlBar: true, hideToolbarTop: true),
inAppWebViewGroupOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(
useShouldOverrideUrlLoading: true, useOnLoadResource: true),
),
),
);
New contributor
Rayan syed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.