aryzhov / flutter-stopper

A Flutter widget that can be expanded to one of the pre-defined stop heights by dragging.
MIT License
26 stars 13 forks source link

Feature Requests #1

Open Skquark opened 5 years ago

Skquark commented 5 years ago

I'm liking this component, easy to use and pretty slick, what I was looking for.. Just had a couple little issues. One is I'm using it in a scaffold with a FloatingActionButton, and when the panel comes up, the FAB sticks to the top, even when all the way up. While that would be a neat effect in some cases, it's undesirable for most uses. Wondering if there's a way for it to slide above the FAB?

Also would like to see the canvas behind the stopper fade with a transparent color overlay, and prevent interaction with the screen in back of it. I believe that's what most would expect to see with this kind of UI. Other than that, looking forward to implementing this in a few places in my app. Thanks.

aryzhov commented 5 years ago

Thank you for your comments. I agree with both issues. I have investigated them and both of them are possible to implement. These limitations are caused by the way bottom sheets are shown, and by overriding the bottom layer we can overcome them. This approach is used by the rounded_modal plugin. You can try to use Stopper with it, although it looks like it's limited to modal popups. I am planning on incorporating similar functionality in the Stopper plugin sometime next week. I'll keep you posted.