woodemi / quick.flutter

53 stars 62 forks source link

LateError (LateInitializationError: Field '_instance@166265524' has not been initialized.) #98

Open likeablegeek opened 9 months ago

likeablegeek commented 9 months ago

Hi ...

I'm trying to use quick_usb to build a MacOS app. I am trying to follow this example code you provide:

await QuickUsb.init();
// ...
var deviceList = await QuickUsb.getDeviceList();
// ...
await QuickUsb.exit();

However, on the first line (await QuickUsb.init();) I get the following exception thrown:

LateError (LateInitializationError: Field '_instance@166265524' has not been initialized.)

Are there suggestions on how to resolve and/or debug this issue?

gtminch commented 5 months ago

I get the same error on Windows when using 0.4.0. It didn't happen with version 0.3.1.