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