woltapp / wolt_modal_sheet

This package provides a responsive modal with multiple pages, motion animation for page transitions, and scrollable content within each page.
MIT License
461 stars 62 forks source link

Make _pages getter public #297

Closed Albertbol closed 1 month ago

Albertbol commented 1 month ago

What feature would you like to see?

I would like to have access to pages. Please tell us the problem you are running into that led to you wanting a new feature. I cant see total of pages in the stack to see that its a last page.

ulusoyca commented 1 month ago

This is a great suggestion and added in https://github.com/woltapp/wolt_modal_sheet/pull/299

Exposing the page list, and also exposing helper getters to detect if the current page is first/last really improved the example playground app. You can see yourself in this PR diff: https://github.com/woltapp/wolt_modal_sheet/pull/299/files

Feel free to close the issue if this helps.