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,38 +269,54 @@ 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
text: '雨刷', ? SizedBox.shrink()
image_path: 'assets/images/wiper.png', : SizedBox(width: ScreenUtil().setWidth(btn_gap)),
diameter: 130, -2 == widget.id
onPress: () { ? SizedBox.shrink()
// 131112 : getRoundButton_image(
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3); text: '雨刷',
}, image_path: 'assets/images/wiper.png',
), diameter: 130,
SizedBox(width: ScreenUtil().setWidth(btn_gap)), onPress: () {
getRoundButton_image( // 131112
text: '放大', setSphericalCameraDio(
image_path: 'assets/images/zoom_in.png', id: widget.id, dwip: widget.dwip, cmdCode: 3);
imageSize: 72, },
diameter: 130, ),
onPress: () { -2 == widget.id
// 131112 ? SizedBox.shrink()
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 11); : SizedBox(width: ScreenUtil().setWidth(btn_gap)),
}, -2 == widget.id
), ? SizedBox.shrink()
SizedBox(width: ScreenUtil().setWidth(btn_gap)), : getRoundButton_image(
getRoundButton_image( text: '放大',
text: '缩小', image_path: 'assets/images/zoom_in.png',
image_path: 'assets/images/zoom_out.png', imageSize: 72,
imageSize: 72, diameter: 130,
diameter: 130, onPress: () {
onPress: () { // 131112
// 131112 setSphericalCameraDio(
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 12); 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)), bFullScreen ? SizedBox.shrink() : SizedBox(height: ScreenUtil().setHeight(79)),
@ -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