Skip to content

How solve show dialog feature #31

Answered by arkivanov
Kotlinlife asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. I believe it depends on the complexity of the dialog. Relatively simple dialogs can be just part of the state of a component. E.g. there may be a field in the state, which is observed in the UI and the dialog is displayed.

Complex dialogs can be extracted to a separate component. Such a component can be controlled by a dedicated Router, or can be permanent with methods to show/hide the dialog. Depends on the use case.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@arkivanov
Comment options

@Kotlinlife
Comment options

Answer selected by Kotlinlife
Comment options

You must be logged in to vote
2 replies
@arkivanov
Comment options

@malliaridis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #30 on February 04, 2022 19:03.