Friends, the example is working normally, but when entering another page the bluetooth is disconnected. When I return to the configuration page, I need to configure it again. Can anyone help me with this problem?
I am using version 0.2.2 of the serial bluetooth flutter.
I tried to set it to false in the isDisconnecting property, but it didn't work!
@OverRide
void dispose() {
// Avoid memory leak and disconnect
if (isConnected) {
isDisconnecting = false;
connection.dispose();
connection = null;
}
}
I appreciate any comments!
Friends, the example is working normally, but when entering another page the bluetooth is disconnected. When I return to the configuration page, I need to configure it again. Can anyone help me with this problem?
I am using version 0.2.2 of the serial bluetooth flutter.
I tried to set it to false in the isDisconnecting property, but it didn't work!
@OverRide
void dispose() {
// Avoid memory leak and disconnect
if (isConnected) {
isDisconnecting = false;
connection.dispose();
connection = null;
}
}
I appreciate any comments!