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 :
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 :