stargazing-dino / just_the_tooltip

A directional tooltip for flutter projects
https://pub.dev/packages/just_the_tooltip
MIT License
56 stars 54 forks source link

Scroll constraints should not allot full scroll extent if size does not require it #22

Open stargazing-dino opened 3 years ago

stargazing-dino commented 3 years ago

I currently allow stuff that pass me a scroll controller to go past the immediate viewport into extentBefore and extentAfter. HOWEVER. If it's something that chooses to expand as large as possible such as a Center then we should try constraining the child size first to the viewport and then, if it fails, fallback to giving it all the possible size.