-
Notifications
You must be signed in to change notification settings - Fork 6
Description
This function returns the widget that handles the header and footer gestures.
https://github.com/What-the-Flutter/wtf_sliding_sheet/blob/bcce0088049570efea5b6dd483869711a76ece0a/lib/src/sheet.dart#L1179
When the user finishes a drag, if there is sufficient velocity, the sheet will snap to the next / previous snapping point.
This function is on the gesture handler handles that.
https://github.com/What-the-Flutter/wtf_sliding_sheet/blob/bcce0088049570efea5b6dd483869711a76ece0a/lib/src/sheet.dart#L1219
BUG
When SetState runs at the end of this function, the sheet snaps back open. This only happens when closing a sheet.
This is only happening when using a customBuilder
It seems that the extent value is not being updated properly, calling set state therefore rebuilds the sheet in an open state
https://github.com/What-the-Flutter/wtf_sliding_sheet/blob/bcce0088049570efea5b6dd483869711a76ece0a/lib/src/sheet.dart#L1228