Closed cachapa closed 2 years ago
Sure, will do.
Maybe exposing the Rect
can be more useful than a double value for other use cases as well.
Maybe exposing the
Rect
can be more useful than a double value for other use cases as well.
Could you elaborate more why Rect will be more useful? Any use case example.
@Tkko The current screen being dismissed can be dismissed from all directions with your new addition to the package, thanks btw (towards bottom, left, right, top). Also the screen can get smaller while being dismissed. If we expose the dismissing screen's Rect, the first advantage that comes to my mind is we can know if the screen is being dismissed vertically or horizontally. With just a double between 0 and 1, let's say 0.5, we don't know if the screen's bottom or left half is being shown. I am positive that having more info coming from your API will be useful for us users in the long run. We can have a simple getter which gives the double value calculated easily from the visible Rect too..
Convinced, Thanks.
We're trying to fade out the page background (which is separate from the DismissiblePage widget) when the user starts dragging, but unfortunately there's no way to get the drag progress.
It would be nice if the drag progress could be reported via a callback, ideally with a value of 0.0-1.0, indicating how much the dismissible has been dragged compared to its total width/height.