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
Floating Button Behaviour #7
Comments
Hmm, how do you think that should be implemented? Would a gesture detector detecting a scroll up be enough? |
No please, any feature requests to improve the library are welcome! |
Probably? I tried looking at how the slivers do it in the source code, but its convoluted, so I didnt figure it out. |
oh yeah this is brilliant. I was thinking it might even be nice to have a small off-set that the user has to scroll up before it shows up, |
yeah, it will be hard to account for all the edge cases. I will release this implementation for now and update it later if I can think of a consistent way to implement that |
maybe something like tracking the point at which the user first started scrolling up (when the scroll notification gets triggered) and whenever the user scrolls we compare it to the offset. |
@clragon Added in the PR, is that what you required? Also I am having trouble with the parameter names being clear with their purpose so if you think they should be renamed to something else please let me know |
this works wonderfully! Though I think the doc string for
doesnt this only trigger when |
Right, I'll fix that |
it also seems that the button will not show up in a I assume thats because of how the |
It's working fine for me, did you add Example:
|
Ah, wait. The issue here is you are not supposed to pass a scroll controller in that case @clragon |
ah, I see. Yeah, I kind of suspected that. |
If you pass a scroll controller to a CustomScrollView without using the ScrollWrapper you will face a similar issue, where the CustomScrollView will start scrolling free from the NestedScrollView |
I will add a warning in the readme for this |
The new version is up on pub.dev |
very nice 👌 |
The scroll to top button currently appears at a fixed scroll off-set.
I would be very interested in a behaviour similar to the
SliverAppBar
withfloating: true
,where the button would only appear if the user is scrolling up.
(I also hope I am not too annoying with all the requests)
The text was updated successfully, but these errors were encountered: