Launch camera view in Chrome custom tab
This commit is contained in:
		| @@ -20,21 +20,9 @@ class _CameraStreamViewState extends State<CameraStreamView> { | |||||||
|   String streamUrl = ""; |   String streamUrl = ""; | ||||||
|  |  | ||||||
|   launchStream() { |   launchStream() { | ||||||
|     Navigator.push( |     Launcher.launchURLInCustomTab( | ||||||
|         context, |       context: context, | ||||||
|         MaterialPageRoute( |       url: streamUrl | ||||||
|           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}"), |  | ||||||
|             ), |  | ||||||
|           ), |  | ||||||
|         ) |  | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user