hyzp_ybqx-Commit063:播放违章视频时,隐藏雨刷、缩放按钮

master
WinUser01 4 years ago
parent 7302718e55
commit bf1be3b9bd

@ -148,8 +148,11 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
int btnCount = 4; // int btnCount = 4; //
int btnCount3 = listData.length; // int btnCount3 = listData.length; //
var mediaSize = MediaQuery.of(context).size; var mediaSize = MediaQuery.of(context).size;
double btn_left = 70; //
double btn_gap = 70; // // widget.id-2
double btn_left = -2 == widget.id ? 347 : 70; //
double btn_gap = -2 == widget.id ? 104 : 70; //
// //
double _outerRadius = 270; double _outerRadius = 270;
double _innerRadius = _outerRadius / 2; double _innerRadius = _outerRadius / 2;
@ -266,36 +269,52 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
restartPlay(urlnew); restartPlay(urlnew);
}, },
), ),
SizedBox(width: ScreenUtil().setWidth(btn_gap)), // widget.id-2
getRoundButton_image( -2 == widget.id
? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '雨刷', text: '雨刷',
image_path: 'assets/images/wiper.png', image_path: 'assets/images/wiper.png',
diameter: 130, diameter: 130,
onPress: () { onPress: () {
// 131112 // 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3); setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 3);
}, },
), ),
SizedBox(width: ScreenUtil().setWidth(btn_gap)), -2 == widget.id
getRoundButton_image( ? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '放大', text: '放大',
image_path: 'assets/images/zoom_in.png', image_path: 'assets/images/zoom_in.png',
imageSize: 72, imageSize: 72,
diameter: 130, diameter: 130,
onPress: () { onPress: () {
// 131112 // 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 11); setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 11);
}, },
), ),
SizedBox(width: ScreenUtil().setWidth(btn_gap)), -2 == widget.id
getRoundButton_image( ? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '缩小', text: '缩小',
image_path: 'assets/images/zoom_out.png', image_path: 'assets/images/zoom_out.png',
imageSize: 72, imageSize: 72,
diameter: 130, diameter: 130,
onPress: () { onPress: () {
// 131112 // 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 12); setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 12);
}, },
), ),
], ],
@ -312,7 +331,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
// //
innerRadius: _innerRadius / ScreenUtil().pixelRatio, innerRadius: _innerRadius / ScreenUtil().pixelRatio,
outerRadius: _outerRadius / ScreenUtil().pixelRatio, outerRadius: _outerRadius / ScreenUtil().pixelRatio,
callback: -2 == widget.id callback: -2 == widget.id // -2
? null ? null
: (status) { : (status) {
/// ///

Loading…
Cancel
Save