|
|
@@ -376,7 +376,9 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
|
|
|
if (myUser.moneyTicket < houseInfo.houseLevel.entryCoin) {
|
|
|
MyDialog.showDialog(context, '门票不足不能加入', onsubmit: () {
|
|
|
- Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
+ if (Platform.isAndroid) {
|
|
|
+ Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
+ }
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
@@ -391,19 +393,19 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
showDialog(
|
|
|
context: context,
|
|
|
builder: (context) => AlertDialog(
|
|
|
- title: Text('需要悬浮窗权限'),
|
|
|
- contentTextStyle: TextStyle(color: Colors.black87),
|
|
|
- content: Text('请在点击确定后,勾选"允许显示在其他应用的上层"'),
|
|
|
- actions: <Widget>[
|
|
|
- FlatButton(
|
|
|
- child: Text('确定'),
|
|
|
- onPressed: () {
|
|
|
- Navigator.of(context).pop();
|
|
|
- ScreenStreamPlugin.requestPermission();
|
|
|
- },
|
|
|
- ),
|
|
|
- ],
|
|
|
+ title: Text('需要悬浮窗权限'),
|
|
|
+ contentTextStyle: TextStyle(color: Colors.black87),
|
|
|
+ content: Text('请在点击确定后,勾选"允许显示在其他应用的上层"'),
|
|
|
+ actions: <Widget>[
|
|
|
+ FlatButton(
|
|
|
+ child: Text('确定'),
|
|
|
+ onPressed: () {
|
|
|
+ Navigator.of(context).pop();
|
|
|
+ ScreenStreamPlugin.requestPermission();
|
|
|
+ },
|
|
|
),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
);
|
|
|
return;
|
|
|
} else {
|
|
|
@@ -781,7 +783,10 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
Container(
|
|
|
height: 10,
|
|
|
),
|
|
|
- Text('注:上方显示数值为前三名的“当前奖励/最高奖励”',style: TextStyle(color: Colors.white30,fontSize: 12),)
|
|
|
+ Text(
|
|
|
+ '注:上方显示数值为前三名的“当前奖励/最高奖励”',
|
|
|
+ style: TextStyle(color: Colors.white30, fontSize: 12),
|
|
|
+ )
|
|
|
],
|
|
|
)),
|
|
|
|