flutter_libserialport icon indicating copy to clipboard operation
flutter_libserialport copied to clipboard

libserialport blocks UI?

Open ImadMAKS opened this issue 1 year ago • 0 comments

Hello all,

This is more a general question than a real issue. In my app, when the user clicks on the button, a dialog should appear, in which there is a CircularProgressIndicator then serial port operations are executed. When doing read or write operations, using port.write() and port.read(), the UI freezes until the operation is done, the dialog doesn't even show. Is this common, and has anyone else experienced it?

The only fix that I found to this is using Isolates, but I am not sure if I am doing something wrong or this is expected behavior.

Has anyone else encountered this issue?

Cheers

ImadMAKS avatar Jan 17 '25 14:01 ImadMAKS