From 7536a5277181e1feeb0e64bb735b911dd7194dc3 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Wed, 4 Mar 2020 16:59:08 +0000 Subject: [PATCH] Clear camera viewer --- lib/entities/camera/widgets/camera_stream_view.dart | 12 +----------- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/entities/camera/widgets/camera_stream_view.dart b/lib/entities/camera/widgets/camera_stream_view.dart index e09eb2b..b626fda 100644 --- a/lib/entities/camera/widgets/camera_stream_view.dart +++ b/lib/entities/camera/widgets/camera_stream_view.dart @@ -14,14 +14,12 @@ class _CameraStreamViewState extends State { CameraEntity _entity; String _streamUrl = ""; - WebViewController _webViewController; VideoPlayerController _videoPlayerController; Timer _monitorTimer; bool _isLoaded = false; double _aspectRatio = 1.33; String _webViewHtml; String _jsMessageChannelName = 'unknown'; - String _playerInfo = ''; Completer _loading; @override @@ -99,10 +97,6 @@ class _CameraStreamViewState extends State { setState(() { _isLoaded = false; }); - } else { - setState(() { - _playerInfo = '${_videoPlayerController.value.position}/${_videoPlayerController.value.duration}'; - }); } }); } @@ -137,9 +131,6 @@ class _CameraStreamViewState extends State { }); }) ) - }, - onWebViewCreated: (WebViewController controller) { - _webViewController = controller; } ); } @@ -216,8 +207,7 @@ class _CameraStreamViewState extends State { mainAxisSize: MainAxisSize.min, children: [ _buildScreen(), - _buildControls(), - Text(_playerInfo) + _buildControls() ], ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 1228053..0da48cf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: device_info: ^0.4.1+4 flutter_local_notifications: ^1.1.6 geolocator: ^5.2.1 - workmanager: ^0.2.0 + workmanager: ^0.2.1 battery: ^0.3.1+7 firebase_crashlytics: ^0.1.2+5 video_player: ^0.10.7