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

Broken in Flutter version 2.0.0 #34

Closed
M123-dev opened this issue Mar 3, 2021 · 7 comments
Closed

Broken in Flutter version 2.0.0 #34

M123-dev opened this issue Mar 3, 2021 · 7 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@M123-dev
Copy link

M123-dev commented Mar 3, 2021

../../../../../../SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_staggered_animations-0.1.2/lib/src/animation_configuration.dart:161:20: Error: The method 'ancestorWidgetOfExactType' isn't defined for the cl
ass 'BuildContext'.

  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../../../SDK/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'ancestorWidgetOfExactType'.
    return context.ancestorWidgetOfExactType(AnimationConfiguration)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    ../../../../../../SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_staggered_animations-0.1.2/lib/src/animation_limiter.dart:75:20: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'Bu
    ildContext'.
  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../../../SDK/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'ancestorWidgetOfExactType'.
    return context.ancestorWidgetOfExactType(_AnimationLimiterProvider)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
@MrLepage
Copy link

MrLepage commented Mar 3, 2021

I guess they have removed the
ancestorWidgetOfExactType
method.

Library update will be released before the end of the week.

@pengzhenkun
Copy link

多久修复这个问题,急!

@pengzhenkun
Copy link

../../../../../Library/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_staggered_animations-0.1.2/lib/src/animation_configuration.dart:161:20: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.

  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../../Library/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'ancestorWidgetOfExactType'.
    return context.ancestorWidgetOfExactType(AnimationConfiguration)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    ../../../../../Library/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_staggered_animations-0.1.2/lib/src/animation_limiter.dart:75:20: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.
  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../../Library/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'ancestorWidgetOfExactType'.
    return context.ancestorWidgetOfExactType(_AnimationLimiterProvider)
    ^^^^^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

@hsangtini
Copy link

Really need to upgrade flutter, hope update available soon. Thanks.

@MrLepage MrLepage self-assigned this Mar 4, 2021
@MrLepage MrLepage added this to the 0.1.3 milestone Mar 4, 2021
@MrLepage MrLepage added the bug Something isn't working label Mar 4, 2021
@MrLepage
Copy link

MrLepage commented Mar 4, 2021

Fixed in 0.1.3.

@MrLepage MrLepage closed this as completed Mar 4, 2021
@MrLepage
Copy link

MrLepage commented Mar 4, 2021

Released :)

@M123-dev
Copy link
Author

M123-dev commented Mar 5, 2021

Thanks, is working great 👍🏻

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

4 participants