jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.86k stars 470 forks source link

[modal_bottom_sheet]: Invalid/unused API's on `closeProgressThreshold` and `preventPopThreshold` #409

Open Juliotati opened 3 months ago

Juliotati commented 3 months ago

After using the package for a while and attempting to have a different value for closeProgressThreshold, I noticed that the value passed in was not being reflected on the behaviour of the bottom sheet. So I dug in and found these.

1.

https://github.com/jamesblasco/modal_bottom_sheet/blob/e44458d2359565324e117bb3d41da04f5e60362e/modal_bottom_sheet/lib/src/bottom_sheet.dart#L48-L54

2.

https://github.com/jamesblasco/modal_bottom_sheet/blob/e44458d2359565324e117bb3d41da04f5e60362e/modal_bottom_sheet/lib/src/bottom_sheet.dart#L160-L161

Let me know if this is all clear to grasp. It does seem all too coupled hence the bug.