hyzp_ybqx-Commit057:已经调整步进speed = 2,已经初步实现球机雨刷控制

master
WinUser01 4 years ago
parent 38b1500372
commit 4ae2a4db2b

@ -49,6 +49,8 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
@override
void dispose() {
Playing = false;
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1);
super.dispose();
}
@ -269,7 +271,10 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
text: '雨刷',
image_path: 'assets/images/wiper.png',
diameter: 130,
onPress: () {},
onPress: () {
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3);
},
),
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
getRoundButton_image(
@ -410,6 +415,8 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
onWillPop: () {
Playing = false;
getingDwVideo = false;
// 131112
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1);
Navigator.pop(context); //
},
),
@ -514,6 +521,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
double fontSize = 16,
double imageSize = 90,
Color color = const Color.fromRGBO(52, 157, 237, 1),
Color color_bkg = Colors.white,
var onPress}) {
return InkWell(
onTap: onPress,
@ -534,7 +542,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
// color: Color.fromRGBO(52, 157, 237, 1),
// ),
decoration: BoxDecoration(
color: Colors.white,
color: color_bkg,
borderRadius: BorderRadius.all(Radius.circular(200)),
border: Border.all(width: 0, style: BorderStyle.none),
),

Loading…
Cancel
Save