Resolve #382 VIew camera in chrome custom tab

This commit is contained in:
estevez-dev
2019-06-21 21:01:53 +03:00
parent caabf25260
commit 3c0ca5d16d
5 changed files with 31 additions and 24 deletions

View File

@ -28,7 +28,7 @@ class Panel {
void handleOpen(BuildContext context) {
if (type == "iframe") {
Logger.d("Launching custom tab with ${config["url"]}");
HAUtils.launchURLInCustomTab(context, config["url"]);
HAUtils.launchURLInCustomTab(context: context, url: config["url"]);
} else if (type == "config") {
Navigator.of(context).push(
MaterialPageRoute(
@ -38,7 +38,7 @@ class Panel {
} else {
String url = "${Connection().httpWebHost}/$urlPath";
Logger.d("Launching custom tab with $url");
HAUtils.launchURLInCustomTab(context, url);
HAUtils.launchURLInCustomTab(context: context, url: url);
}
}