修复绑定设备时,出现白屏现象

This commit is contained in:
wyf
2025-05-26 09:11:59 +08:00
parent 104b39b7c3
commit e0fef11b33
2 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ class _WifiPageState extends State<WifiPage> {
blueteethBindController.wifiStatus.value =
widget.type['status']['status'];
}
if (widget.type['mac'] == null) {
if (widget.type == null) {
THapp bledevice = blueteethBindController.currentDevice!;
bledevice.device.connect().then((Value) {
var res2 = bledevice.isConnected;
@@ -75,7 +75,7 @@ class _WifiPageState extends State<WifiPage> {
}
if (onData.status == BleEventType.ready) {
aa = await getDeviceNetVersion(
blueteethBindController.currentDevice!, 2);
blueteethBindController.currentDevice!, 10);
if (aa == "4g") {
TopSlideNotification.show(
context,
@@ -198,7 +198,7 @@ class _WifiPageState extends State<WifiPage> {
left: 0,
child: returnIconButtom,
),
if (widget.type['mac'] == null)
if (widget.type == null)
Positioned(
right: 20.rpx,
child: CustomCard(