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

Need to rollback on modification made on animation_controller.dart #62752

Closed
5c0rp264 opened this issue Aug 2, 2020 · 6 comments
Closed

Need to rollback on modification made on animation_controller.dart #62752

5c0rp264 opened this issue Aug 2, 2020 · 6 comments
Labels
in triage Presently being triaged by the triage team

Comments

@5c0rp264
Copy link

5c0rp264 commented Aug 2, 2020

Hello, a few days ago a commit has been made modifying the animations for avoiding null on a parameter ( see here ). This modifications lead to an error while compiling and using Flutter "The named parameter 'vsync' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'vsync'.dartundefined_named_parameter"

@5c0rp264 5c0rp264 changed the title Need to rollback on a removed @ in animation controller a few days ago Need to rollback on modification made on animation controller.dart Aug 2, 2020
@5c0rp264 5c0rp264 changed the title Need to rollback on modification made on animation controller.dart Need to rollback on modification made on animation_controller.dart Aug 2, 2020
@Quijx
Copy link

Quijx commented Aug 2, 2020

I had the same problem a few days ago, but it resolved itself after a while somehow. I think the problem was that an older Dart SDK was used. The AnimationController clearly has a named parameter vsync, but it uses the new required keyword that was introduced with the null-safety. Try run dart --version and see if your version is hight enough. Mine is 2.8.4 and it works for me. If that checks out, maybe try raising the sdk version in the pubspec.yaml.

@DJafari
Copy link

DJafari commented Aug 3, 2020

in your pubspec.yml

change this to :

environment:
  sdk: ">=2.8.0 <3.0.0"

and flutter pub get

i'm using android studio, then i invalidate cache and restart, done!

@TahaTesser
Copy link
Member

Hi @5c0rp264
Does above solutions works for you?
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Aug 3, 2020
@5c0rp264
Copy link
Author

5c0rp264 commented Aug 3, 2020

Yes perfectly !! I mark this issue as closed, thank you !!!

@5c0rp264 5c0rp264 closed this as completed Aug 3, 2020
@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 3, 2020
@vankhoa01
Copy link

I got same issue when use master channel
It was fixed after I switch to stable channel

jasontrask added a commit to jasontrask/Best-Flutter-UI-Templates that referenced this issue Mar 2, 2021
Looks like a change in Dart now requires sdk v2.8.0 in order to suppress an error in the AnimationController on the vsync parameter.
Using the >2.7.0 sdk results in an error: The named parameter 'vsync' isn't defined.
Ref: flutter/flutter#62752 (comment)
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team
Projects
None yet
Development

No branches or pull requests

5 participants