Handle scaffold topBar and bottomBar#2
Open
tcBorek2002 wants to merge 2 commits intormyhal:compose-shared-elementfrom
Open
Handle scaffold topBar and bottomBar#2tcBorek2002 wants to merge 2 commits intormyhal:compose-shared-elementfrom
tcBorek2002 wants to merge 2 commits intormyhal:compose-shared-elementfrom
Conversation
Owner
|
@tcBorek2002 I would suggest integrating Compose Navigation library in that case, because my example didn't include navigation for simplicity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of all thank you for this repository, it was very useful to me!
In my app, I am making use of the scaffold topBar and bottomBar to show the app title and some navigation buttons at the bottom.
This section from the material 3 guidelines indicates what I am trying to achieve. You can see it has the navbar at the bottom.
I have tried to make the container transform transition work with the fab while using the scaffold topBar and bottomBar. My strategy for this is to conditionally render these bars when the AddContentScreen is shown or not.
The best way to do this would have been to render the AddContentScreen on top of the topBar and bottomBar but I was not able to do this. My solution is not great because there is a bit of a weird artefact at the top. Let me know if you would have a better way to handle this. For now I will leave this here for anyone trying to do the same.
Below a gif of the way it works in my solution: