halildurmus / win32

Access common Win32 APIs directly from Dart using FFI — no C required!
https://win32.pub
BSD 3-Clause "New" or "Revised" License
758 stars 123 forks source link

Error: Type 'UnmodifiableUint8ListView' not found. #887

Closed dhikshithrm closed 2 months ago

dhikshithrm commented 2 months ago

Using flutter latest version, giving this Error: Type 'UnmodifiableUint8ListView' not found.

Expected behavior

it should compile and run without any errors

Environment

macOS 14.6.1 23G93

halildurmus commented 2 months ago

The UnmodifiableUint8ListView class was removed in Dart v3.5, and the package:win32 has not used it since v5.5.1. One of the packages you depend on is likely using an older version of package:win32 (pre-5.5.1), which is causing the error you're encountering.

There are a few ways to fix this error. I suggest trying one of the workarounds described in the following issue: https://github.com/jonataslaw/get_cli/issues/263

dhikshithrm commented 2 months ago

thanks so much @halildurmus