File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
lib/bademagic_module/bluetooth Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -27,24 +27,17 @@ class ScanState extends NormalBleState {
27
27
.contains (Guid ("0000fee0-0000-1000-8000-00805f9b34fb" )),
28
28
orElse: () => throw Exception ("Matching device not found." ),
29
29
);
30
- toast.showToast ('Device found. Connecting...' );
31
- isCompleted = true ;
32
- await FlutterBluePlus .stopScan ();
33
- nextStateCompleter.complete (ConnectState (
34
- scanResult: foundDevice,
35
- manager: manager,
36
- ));
37
30
38
31
toast.showToast ('Device found. Connecting...' );
39
32
isCompleted = true ;
40
- FlutterBluePlus .stopScan ();
33
+ await FlutterBluePlus .stopScan ();
41
34
42
35
nextStateCompleter.complete (ConnectState (
43
36
scanResult: foundDevice,
44
37
manager: manager,
45
38
));
46
39
} catch (e) {
47
- //ignore and keep scanning
40
+ // Ignore and keep scanning
48
41
}
49
42
}
50
43
},
You can’t perform that action at this time.
0 commit comments