-
Notifications
You must be signed in to change notification settings - Fork 843
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
Dart 2 support? #20
Comments
Tried 0.5.1, no errors but sound was not being played. |
This was referenced Dec 27, 2018
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting errors with Flutter beta 2, which uses Dart 2.
I tried running it with
flutter run --no-preview-dart-2
and it worked.Here's the error, with beta 2 and Dart 2.
type 'Future<dynamic>' is not a subtype of type 'Future<int>'
Location:
in
audioplayer.dart
Running
flame_example
Well, here's a screenshot from VS Code:
The line in which the error is found is
Flame.audio.loop('music.ogg');
The text was updated successfully, but these errors were encountered: