路径规划视频完成

This commit is contained in:
mmc
2026-03-09 12:41:55 +08:00
parent 6310a08278
commit 36def6006a
2 changed files with 11 additions and 12 deletions

View File

@@ -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<WebRTCMapPlayer> {
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<WebRTCMapPlayer> {
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<WebRTCMapPlayer> {
);
}
}