Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation of non-constant type arguments 'T' in this FFI API #11

Open
dkastl opened this issue Feb 1, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dkastl
Copy link
Collaborator

dkastl commented Feb 1, 2021

The following warning is shown when compiling with a recent version of Flutter.

../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/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>();                            
                                ^                         

This may break compilation in upcoming versions.

@dkastl dkastl added the bug Something isn't working label Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant