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

Compiler Error #76

Closed
kaifiappsmaven opened this issue Jul 9, 2019 · 5 comments
Closed

Compiler Error #76

kaifiappsmaven opened this issue Jul 9, 2019 · 5 comments
Assignees

Comments

@kaifiappsmaven
Copy link

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!

@ryanheise ryanheise self-assigned this Jul 18, 2019
@ryanheise
Copy link
Owner

Hi @kaifiappsmaven

You may need to upgrade your flutter to use the latest features of the Dart language.

@hacker1024
Copy link
Contributor

You're using square brackets ([) instead of curly braces ({)...

@ryanheise
Copy link
Owner

Hi @kaifiappsmaven , you need to upgrade flutter to the latest version to use collection if and spreads.

@kaifiappsmaven
Copy link
Author

Thankyou it worked.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants