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

After updating flutter, it's causing dependency problems #15

Open
luffy1012 opened this issue Apr 5, 2021 · 1 comment
Open

After updating flutter, it's causing dependency problems #15

luffy1012 opened this issue Apr 5, 2021 · 1 comment

Comments

@luffy1012
Copy link

So with latest stable channel of flutter it is giving following error on pub get command!
/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/floating_search_bar-0.3.0/lib/ui/sliver_search_bar.dart:242:20: Error: The method 'ancestorRenderObjectOfType' isn't defined for the class 'BuildContext'.

I solved this by using flutter dev channel. But it is not working in stable channel!
My configuration :

Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b1395592de (4 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce47073a
Tools • Dart 2.12.2
@rodydavis rodydavis transferred this issue from rodydavis/plugins Apr 20, 2021
@vikivyas
Copy link

vikivyas commented May 5, 2021

Update sliver_search_bar.dart

replaced return context.findAncestorRenderObjectOfType(); from return context.ancestorRenderObjectOfType(const TypeMatcher());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants