修复绑定设备时,出现白屏现象
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user