Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement transition between navigation page widget and modal route #273

Open
sagnik-sanyal opened this issue Oct 22, 2024 · 4 comments
Open
Labels
question Further information is requested

Comments

@sagnik-sanyal
Copy link

Given the video below to demonstrate the transition

VID_20241022175607.mp4

How to transition from a bottom sheet inside stack to a floating close button modal scrollable page dynamically, would help a lot as this package is fairly new but seems it has a lot of potential for adjusting to any usecase.

@sagnik-sanyal sagnik-sanyal changed the title Implement transition between navigation page and modal route Implement transition between navigation page widget and modal route Oct 22, 2024
@fujidaiti
Copy link
Owner

Hi @sagnik-sanyal,

How to transition from a bottom sheet inside stack to a floating close button modal scrollable page dynamically

You can use NavigationSheet for this use case. Here's a rough outline of the widget tree:

Stack
|-- Map widget
|-- Barrier widget (a translucent black background, visible only when the select-location-page is shown)
|-- NavigationSheet
    |-- Location detail page
    |-- Select location page

The following examples would be helpful:


Since the persistent sheets don't have a barrier, you'll need to create it yourself. I'm planning to include this feature in the next release (v0.11.0). As for the floating button above the sheet, see #3.

@fujidaiti
Copy link
Owner

there is one more thing that the close button seems to be not rendered outside the boundaries of the bottom sheet.

Any screenshot? I think this is the intended behavior, so we need to handle that kind of widgets in a special manner as mentioned in #3.

@sagnik-sanyal
Copy link
Author

sagnik-sanyal commented Oct 24, 2024

there is one more thing that the close button seems to be not rendered outside the boundaries of the bottom sheet.

Any screenshot? I think this is the intended behavior, so we need to handle that kind of widgets in a special manner as mentioned in #3.

I mean if widgets are placed outside contents of the boundaries using stack and using positioned then the widgets outside seem to not render ( which seems intended ) but sometimes that kind of ui is required. If using Transform.translate can I have a small widget tree sample in that usecase ?

@fujidaiti
Copy link
Owner

If using Transform.translate can I have a small widget tree sample in that usecase ?

Hmmm, I'm not sure. I'll take a closer look this weekend, but I think there needs to be a way to customize the clipping behavior of the sheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants