ardera / flutter_packages

My collected packages for pub.dev
MIT License
28 stars 7 forks source link

[linux_serial] Error when opening serial port #18

Closed hareendranmg closed 10 months ago

hareendranmg commented 1 year ago

When i open serial port, i get the following error.

flutter: NoSuchMethodError: Class 'Array' has no instance method '[]='. Receiver: Instance of 'Array' Tried calling: []=(6, 1)

Code: final ports = SerialPorts.ports; final port = ports.singleWhere((p) => p.name.contains('ttyUSB')); final handle = port.open(baudrate: Baudrate.b19200);

The exception occures when open function called.

ardera commented 10 months ago

Sorry for the delayed response. I can't reproduce the problem. What flutter version are you using?

hareendranmg commented 10 months ago

Hi @ardera,

The issue has been resolved, although I've forgotten the specific solution. By the way, thanks for this package.