feat: 1,注释掉旧的udp流程2,注释掉对讲收发包调试代码
This commit is contained in:
parent
e3beea01da
commit
2f00a6280d
@ -313,7 +313,7 @@ class LockMainLogic extends BaseGetXController {
|
|||||||
|
|
||||||
// 开启UDP
|
// 开启UDP
|
||||||
// AppLog.log('onReady() LockMainLogic');
|
// AppLog.log('onReady() LockMainLogic');
|
||||||
UdpHelp().openUDP();
|
// UdpHelp().openUDP();
|
||||||
BlueManage();
|
BlueManage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@ class MineSetLogic extends BaseGetXController {
|
|||||||
'logout_result': '成功',
|
'logout_result': '成功',
|
||||||
});
|
});
|
||||||
|
|
||||||
UdpHelp().closeUDP();
|
// UdpHelp().closeUDP();
|
||||||
logOut();
|
logOut();
|
||||||
|
|
||||||
StoreService.to.saveLanguageCode('');
|
StoreService.to.saveLanguageCode('');
|
||||||
|
|||||||
@ -255,39 +255,39 @@ class _TalkViewPageState extends State<TalkViewPage>
|
|||||||
)
|
)
|
||||||
: Container()),
|
: Container()),
|
||||||
//ToDo: 增加对讲调试、正式可删除
|
//ToDo: 增加对讲调试、正式可删除
|
||||||
Visibility(
|
// Visibility(
|
||||||
visible: true,
|
// visible: true,
|
||||||
child: Positioned(
|
// child: Positioned(
|
||||||
top: 20, // 设置在顶部
|
// top: 20, // 设置在顶部
|
||||||
left: 20,
|
// left: 20,
|
||||||
right: 20, // 确保调试信息在屏幕宽度内居中
|
// right: 20, // 确保调试信息在屏幕宽度内居中
|
||||||
child: Container(
|
// child: Container(
|
||||||
height: 100, // 设置高度为 100
|
// height: 100, // 设置高度为 100
|
||||||
color: Colors.black.withOpacity(0.5), // 可选:设置背景颜色和透明度
|
// color: Colors.black.withOpacity(0.5), // 可选:设置背景颜色和透明度
|
||||||
padding: const EdgeInsets.all(10), // 可选:设置内边距
|
// padding: const EdgeInsets.all(10), // 可选:设置内边距
|
||||||
child: Consumer<DebugInfoModel>(
|
// child: Consumer<DebugInfoModel>(
|
||||||
builder: (BuildContext context, DebugInfoModel debugInfo,
|
// builder: (BuildContext context, DebugInfoModel debugInfo,
|
||||||
Widget? child) {
|
// Widget? child) {
|
||||||
return Column(
|
// return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
// children: <Widget>[
|
||||||
Text(
|
// Text(
|
||||||
'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
|
// 'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
|
||||||
style: const TextStyle(
|
// style: const TextStyle(
|
||||||
color: Colors.white), // 设置文本颜色为白色
|
// color: Colors.white), // 设置文本颜色为白色
|
||||||
),
|
// ),
|
||||||
Text(
|
// Text(
|
||||||
'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
|
// 'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
|
||||||
style: const TextStyle(
|
// style: const TextStyle(
|
||||||
color: Colors.white), // 设置文本颜色为白色
|
// color: Colors.white), // 设置文本颜色为白色
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
// 添加服务器延迟检测
|
// 添加服务器延迟检测
|
||||||
// Positioned(
|
// Positioned(
|
||||||
// top: 120,
|
// top: 120,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user