Skip to content

Bluetooth disconnects when changing the page. #13

Description

@ftecnologiasistemas

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;
}

super.dispose();

}

I appreciate any comments!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions