diff --git a/lib/features/home/presentation/widgets/map/testmap_pages.dart b/lib/features/home/presentation/widgets/map/testmap_pages.dart index 97e28176..71f81b12 100644 --- a/lib/features/home/presentation/widgets/map/testmap_pages.dart +++ b/lib/features/home/presentation/widgets/map/testmap_pages.dart @@ -696,10 +696,10 @@ class _MapPageEnterpriseState extends State { _traceManager.reset(); // 5. 重新加载作业记录(保持数据最新) - // final userId = context.read().state.user?.userId ?? ""; - // if (userId.isNotEmpty) { - // await context.read().loadWorkRecords(userId); - // } + // final userId = context.read().state.user?.userId ?? ""; + // if (userId.isNotEmpty) { + // await context.read().loadWorkRecords(userId); + // } if (savedCurrentLatLng != null) { _mapController.move(savedCurrentLatLng, _mapController.camera?.zoom ?? 17); @@ -876,8 +876,8 @@ class _MapPageEnterpriseState extends State { streamUrl: _videoStreamUrl, width: 320, height: 180, - showLeftPip: true, - showRightPip: true, + showLeftPip: false, + showRightPip: false, onClose: _closeVideoDialog, // 关闭回调 ), ), diff --git a/lib/features/home/presentation/widgets/video.dart b/lib/features/home/presentation/widgets/video.dart index 9c80a5b5..e341f1dd 100644 --- a/lib/features/home/presentation/widgets/video.dart +++ b/lib/features/home/presentation/widgets/video.dart @@ -24,8 +24,8 @@ class WebRTCMapPlayer extends StatefulWidget { super.key, required this.streamUrl, required this.onClose, - this.showLeftPip = true, - this.showRightPip = true, + this.showLeftPip = false, + this.showRightPip = false, this.width = 320, // 默认宽度 this.height = 180, // 默认高度(16:9比例) }); @@ -259,7 +259,7 @@ class _WebRTCMapPlayerState extends State { decoration: BoxDecoration( color: Colors.black, borderRadius: BorderRadius.circular(12), - boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.3), blurRadius: 15, offset: const Offset(0, 5))], + boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.15), blurRadius: 2, offset: const Offset(0, 1))], ), child: _isInitialized ? Stack( @@ -276,9 +276,9 @@ class _WebRTCMapPlayerState extends State { child: Container( padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5), decoration: BoxDecoration( - color: Colors.black.withOpacity(0.5), // 半透明黑色背景 + //color: Colors.black.withOpacity(0.5), // 半透明黑色背景 borderRadius: BorderRadius.circular(8), // 圆角效果 - border: Border.all(color: Colors.white.withOpacity(0.3), width: 0.5), // 可选:加一层浅边框 + //border: Border.all(color: Colors.white.withOpacity(0.3), width: 0.5), // 可选:加一层浅边框 ), child: Text( _getViewName(), @@ -318,4 +318,3 @@ class _WebRTCMapPlayerState extends State { ); } } -