|
|
@@ -153,7 +153,9 @@ class RoomInfoState extends State<RoomInfo>
|
|
|
data: {'id': playerInfo.id, 'statusFlag': 3});
|
|
|
bool success = await ScreenStreamPlugin.stop();
|
|
|
|
|
|
- getEndTips();
|
|
|
+ Timer(Duration(seconds: 1),(){
|
|
|
+ getEndTips();
|
|
|
+ });
|
|
|
|
|
|
setState(() {
|
|
|
playerInfo.statusFlag = 3;
|
|
|
@@ -658,11 +660,8 @@ class RoomInfoState extends State<RoomInfo>
|
|
|
onPressed: null,
|
|
|
),
|
|
|
);
|
|
|
- } else if (isJoin && statusFlag == 2) {
|
|
|
- int _time;
|
|
|
- if(houseInfo!=null){
|
|
|
- _time=houseInfo.beginTime+3600000-DateTime.now().millisecondsSinceEpoch;
|
|
|
- }
|
|
|
+ } else if (isJoin && statusFlag == 8) {
|
|
|
+
|
|
|
return Container(
|
|
|
width: double.infinity,
|
|
|
padding: EdgeInsets.symmetric(horizontal: 15, vertical: 20),
|
|
|
@@ -671,13 +670,13 @@ class RoomInfoState extends State<RoomInfo>
|
|
|
disabledColor: Color(0xFF914244),
|
|
|
disabledTextColor: Color(0xFF252532),
|
|
|
child: Text(
|
|
|
- '预计'+getSecondsMIn(_time)+'后结算',
|
|
|
+ '正在结算中',
|
|
|
style: TextStyle(fontSize: 16),
|
|
|
),
|
|
|
onPressed: null,
|
|
|
),
|
|
|
);
|
|
|
- } else if (isJoin && statusFlag == 3) {
|
|
|
+ } else if (isJoin && (statusFlag == 2||statusFlag == 3)) {
|
|
|
int _time;
|
|
|
if(houseInfo!=null){
|
|
|
_time=houseInfo.beginTime+3600000-DateTime.now().millisecondsSinceEpoch;
|