Launch camera view in Chrome custom tab

This commit is contained in:
estevez-dev 2019-09-07 19:26:00 +03:00
parent dfaf2a2924
commit 38c37fa212

View File

@ -20,21 +20,9 @@ class _CameraStreamViewState extends State<CameraStreamView> {
String streamUrl = "";
launchStream() {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => WebviewScaffold(
url: "$streamUrl",
withZoom: true,
appBar: new AppBar(
leading: IconButton(
icon: Icon(Icons.close),
onPressed: () => Navigator.pop(context)
),
title: new Text("${_entity.displayName}"),
),
),
)
Launcher.launchURLInCustomTab(
context: context,
url: streamUrl
);
}