rodydavis / floating_search_bar

Floating Search Bar like Gmail for Flutter
https://rodydavis.github.io/floating_search_bar/
MIT License
32 stars 27 forks source link

Error: The method 'ancestorRenderObjectOfType' isn't defined for the class #14

Open angadiumakant opened 3 years ago

angadiumakant commented 3 years ago

Hi i have just updated flutter version to 2.0 .

I am getting error as below.

/C:/src/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'.

Can anyone give me solution for this

brumbrumm commented 3 years ago

Pull request was created for the issue

https://github.com/rodydavis/floating_search_bar/pull/13

rodydavis commented 3 years ago

Thank you! I am migrating all my packages to null safe. so i will make sure this PR is a part of it. Thank you @brumbrumm

brumbrumm commented 3 years ago

@rodydavis you're welcome.

bohrasankalp commented 3 years ago

When the PR will be merged?

rodydavis commented 3 years ago

Soon, but there are a lot of packages in migrating. You can always override a package from a git url of a specific branch in the meantime

shunia commented 3 years ago

Soon, but there are a lot of packages in migrating. You can always override a package from a git url of a specific branch in the meantime

The right way to override a package from a git url of a specific branch:

floating_search_bar:
    git:
      url: https://github.com/brumbrumm/floating_search_bar.git
      ref: 3527d04