-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Compiler Error #76
Comments
You may need to upgrade your flutter to use the latest features of the Dart language. |
You're using square brackets ( |
Hi @kaifiappsmaven , you need to upgrade flutter to the latest version to use collection if and spreads. |
Thankyou it worked. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
While compiling code, I am getting following errors :
Compiler message:
lib/main.dart:84:75: Error: Unexpected token '...'.
if (state?.basicState == BasicPlaybackState.connecting) ...[
^^^
lib/main.dart:88:74: Error: Unexpected token '...'.
if (state?.basicState == BasicPlaybackState.playing) ...[
^^^
lib/main.dart:93:75: Error: Unexpected token '...'.
if (state?.basicState == BasicPlaybackState.paused) ...[
^^^
lib/main.dart:97:30: Error: Unexpected token '...'.
] else ...[
^^^
lib/main.dart:93:23: Error: Unexpected token 'if'.
if (state?.basicState == BasicPlaybackState.paused) ...[
^^
lib/main.dart:88:21: Error: Unexpected token 'if'.
if (state?.basicState == BasicPlaybackState.playing) ...[
^^
lib/main.dart:84:19: Error: Unexpected token 'if'.
if (state?.basicState == BasicPlaybackState.connecting) ...[
^^
lib/main.dart:84:78: Error: A value of type 'List' can't be assigned to a variable of type 'Widget'.
Please help with this!
The text was updated successfully, but these errors were encountered: