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

Use adaptive components like ListDetailPaneScaffold in sample code #617

Closed
rsktash opened this issue Jan 24, 2024 · 6 comments
Closed

Use adaptive components like ListDetailPaneScaffold in sample code #617

rsktash opened this issue Jan 24, 2024 · 6 comments
Labels
question Further information is requested

Comments

@rsktash
Copy link

rsktash commented Jan 24, 2024

Multi pane sample code using ListDetailPaneScaffold (M3)

@arkivanov
Copy link
Owner

Thanks for the proposal. I'm afraid it's technically not possible, because ListDetailPaneScaffold is part of the Material 3 adaptive library, which is not multiplatform. Also, it relies on some sort of rememberListDetailPaneScaffoldNavigator, which looks like a duplication of what Decompose offers.

@arkivanov arkivanov added the question Further information is requested label Jan 24, 2024
@arkivanov
Copy link
Owner

Instead, we can rely on Window Class API and switch modes using Decompose. Part of this API is multiplatform.

@arkivanov
Copy link
Owner

Sorry, I was a bit wrong. The library is Multiplatform, though only Android and Desktop targets are supported. Other points still look valid.

@arkivanov arkivanov closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2024
@rsktash
Copy link
Author

rsktash commented Sep 8, 2024

The library became multiplatform. Maybe now it's time to discuss this topic?

@arkivanov
Copy link
Owner

It looks like the scaffold acts as navigation controller (see rememberListDetailPaneScaffoldNavigator). Currently, I don't see how it can be used with Decompose, because Decompose is already a navigation controller. The main sample features a multi-pane navigation example. It even adapts dynamically on resize. It could be simplified quite a lot of the dynamic resize is not needed (e.g. you only support Android and iOS).

Feel free to share your ideas if you think ListDetailPaneScaffold could be useful with Decompose. Maybe draft an example of API, or something.

@arkivanov
Copy link
Owner

The latest release 3.2.0-beta01 adds the new Child Panels navigation model (experimental).

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