modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

Add support for custom ScrollControllers

Open aj-989 opened this issue 2 years ago • 2 comments

Inside my modal_bottom_sheet, I open a CustomScrollView, if I assign to it ModalScrollController.of(context) everything works fine and I can drag to close, but now I have a special implementation, where my CustomScrollView, must have as controller parameter, an AutoScrollController (a package that autoscrolls to a specific index), this is a class that extends the ScrollController class.

As soon as I assign this AutoScrollController to my CustomScrollView, the drag to close stops working.

Is there anything I could do with this package to solve this issue, where it let's me assign different ScrollControllers to the ScrollView that is inside the modal_bottom_sheet?

Thank you

aj-989 avatar Jul 05 '22 17:07 aj-989

Hi, i have this issue too, have you solved?

jz8912 avatar Aug 19 '22 01:08 jz8912

Hey! It is not going to be possible to support other type of controllers.

I will try to reserve some time into looking to this depending on the demand. So if you are interested please add a 👍🏻

jamesblasco avatar Sep 05 '22 10:09 jamesblasco