app crashes when flutterBluePlus startScan called

Actions & Logic

I have an application that connects to to Bluetooth device. I used the code from the following example:

Creating an App for Interacting with IoT Devices using BLE and FlutterFlow

I had the scan working, and then went to work on other portion of the app display the data. When I went back to complete the connection the app crashes.

final flutterBlue = FlutterBluePlus.instance;

I traced the cause down to the following code:

await flutterBlue.startScan( timeout: const Duration(seconds: 5), );

What have you tried so far?

was using:

flutter_blue_plus: 1.7.5

I tried the newest:

flutter_blue_plus: 1.32.1

Always crashing.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
21 replies