halildurmus / filepicker_windows

File and directory picker for Windows that uses common dialog controls.
BSD 3-Clause "New" or "Revised" License
69 stars 19 forks source link

Support for using non-constant type arguments 'T' in this FFI API is deprecated #5

Closed hexaclue closed 3 years ago

hexaclue commented 3 years ago

I'm getting an error on every hot reload:


../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/ffi-0.2.0-nullsafety.1/lib/src/allocation.dart:47:33: Info: Support for using non-constant type arguments 'T' in this FFI API is deprecated and will be removed in the next stable version of Dart. Rewrite the code to ensure that type arguments are compile time constants referring to a valid native type.
  final int totalSize = count * sizeOf<T>();```
hexaclue commented 3 years ago

nvm, this issue isn't a filepicker_windows issue.