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 btnCount3 = listData.length; //
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 _innerRadius = _outerRadius / 2;
@ -266,38 +269,54 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
restartPlay(urlnew);
},
),
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
getRoundButton_image(
text: '雨刷',
image_path: 'assets/images/wiper.png',
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3);
},
),
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
getRoundButton_image(
text: '放大',
image_path: 'assets/images/zoom_in.png',
imageSize: 72,
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 11);
},
),
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
getRoundButton_image(
text: '缩小',
image_path: 'assets/images/zoom_out.png',
imageSize: 72,
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 12);
},
),
// widget.id-2
-2 == widget.id
? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '雨刷',
image_path: 'assets/images/wiper.png',
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 3);
},
),
-2 == widget.id
? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '放大',
image_path: 'assets/images/zoom_in.png',
imageSize: 72,
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 11);
},
),
-2 == widget.id
? SizedBox.shrink()
: SizedBox(width: ScreenUtil().setWidth(btn_gap)),
-2 == widget.id
? SizedBox.shrink()
: getRoundButton_image(
text: '缩小',
image_path: 'assets/images/zoom_out.png',
imageSize: 72,
diameter: 130,
onPress: () {
// 131112
setSphericalCameraDio(
id: widget.id, dwip: widget.dwip, cmdCode: 12);
},
),
],
),
bFullScreen ? SizedBox.shrink() : SizedBox(height: ScreenUtil().setHeight(79)),
@ -312,7 +331,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
//
innerRadius: _innerRadius / ScreenUtil().pixelRatio,
outerRadius: _outerRadius / ScreenUtil().pixelRatio,
callback: -2 == widget.id
callback: -2 == widget.id // -2
? null
: (status) {
///

Loading…
Cancel
Save