Skip to content

What is better multiple Bottomsheet or one sheet but change content ? #113

Answered by lucaszischka
X901 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes they are not removed from memory as long as the view they belong to is visible (like with other views), they are only hidden. I suggest you to add the BottomSheets to the lowest navigation layer possible so that they get removed when the navigation layer they belong to also gets removed. Also it makes sense to give often used views their own dedicated BottomSheet and to have a bottom sheet with really used content that gets repopulated. A way to achieve this is to return different content views based on some state variable. A switch or if statements inside a group could be helpful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lucaszischka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants