Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ChatPage using latest API #44

Merged
merged 3 commits into from
Jul 31, 2019
Merged

Update ChatPage using latest API #44

merged 3 commits into from
Jul 31, 2019

Conversation

ChangJoo-Park
Copy link
Contributor

FlutterBluetoothSerial.instance.connect is deprecated. so using BluetoothConnection in chat example.

Copy link
Contributor

@AgainPsychoX AgainPsychoX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On dispose: connection.disposeing also will result in connection.finishing and so also connection.canceling, so first cancel might be unnecessary at all. If possible, you can remove doubled cancel.

By the way, the whole deprecated API was used for a while to ease using the library while it is still in development. I have no Android for now to test with, but I will accept the PR in few days.

@ChangJoo-Park
Copy link
Contributor Author

@PsychoXIVI remove .cancel before .dispose

@AgainPsychoX AgainPsychoX merged commit e99d851 into edufolly:master Jul 31, 2019
@ChangJoo-Park ChangJoo-Park deleted the update-example branch July 31, 2019 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants