fix:增加倒计时结束、增加当计时开始时才显示时间
This commit is contained in:
parent
3f022ed878
commit
6efbc05225
@ -278,6 +278,8 @@ class TalkViewLogic extends BaseGetXController {
|
|||||||
if (state.oneMinuteTime.value >= 60) {
|
if (state.oneMinuteTime.value >= 60) {
|
||||||
t.cancel(); // 取消定时器
|
t.cancel(); // 取消定时器
|
||||||
state.oneMinuteTime.value = 0;
|
state.oneMinuteTime.value = 0;
|
||||||
|
// 倒计时结束挂断
|
||||||
|
udpHangUpAction();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -159,7 +159,8 @@ class _TalkViewPageState extends State<TalkViewPage>
|
|||||||
))
|
))
|
||||||
: Container()),
|
: Container()),
|
||||||
Obx(
|
Obx(
|
||||||
() => state.listData.value.isNotEmpty
|
() => state.listData.value.isNotEmpty &&
|
||||||
|
state.oneMinuteTime.value > 0
|
||||||
? Positioned(
|
? Positioned(
|
||||||
top: ScreenUtil().statusBarHeight + 75.h,
|
top: ScreenUtil().statusBarHeight + 75.h,
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user