You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is amazing, but I have an issue that I don't know how to solve.
I want to put the Button inside CollapsingToolbarScaffold, but I want it to be always shown, no matter the state of CollapsingToolbarScaffold. Currently if you put it inside it won't show until the state of the toolbar collapses.
1 solution I tried is to put the Button outside of CollapsingToolbarScaffold, but then you have a button that is not part of the content that you want to show.
For example if you have an AnimatedNavHost inside the content of CollapsingToolbarScaffold to manage the screens, the button inside those screens is different, but won't be shown at the bottom of the screen (over the content), but it will be shown at the bottom of the content.
To summarize, is there any way to "flag" a composable, so that it is not influenced by the scrolling state, but is independent and still part of the CollapsingToolbarScaffold content?
The text was updated successfully, but these errors were encountered:
I have similar issue here. I want to use collapsing toolbar without CollapsingToolbarScaffold() because I'd like to use regular Scaffold() to have a bottom app bar placeholder. My problem can also be solved by having bottom app bar as a pinned component just like @pesjak described
onebone
added
api
Improvement of existing library contracts that may break backwards compatibility
feature
New feature or request
labels
Jan 22, 2022
I see this as a common use case, so I am planning to support such scenarios in the near future. Just as using CollapsingToolbarLayout in the Jetpack library, align() modifier will allow users to fix components in an arbitrary position in the layout.
// not possible right now, but will be available in the near future versionCollapsingToolbarScaffold(
// ...
) {
Button( // placed at the bottom center regardless of scroll state
modifier =Modifier.align(Alignment.BottomCenter)
)
}
Also, I ended up using CollapsingToolbarScaffold + another Scaffold for everything else except toolbar. Works fine for my case explained above , and Google seems to have ended up using multiple scaffolds too in their projects.
Hey,
The library is amazing, but I have an issue that I don't know how to solve.
I want to put the
Button
insideCollapsingToolbarScaffold
, but I want it to be always shown, no matter the state ofCollapsingToolbarScaffold
. Currently if you put it inside it won't show until the state of the toolbar collapses.1 solution I tried is to put the
Button
outside ofCollapsingToolbarScaffold
, but then you have a button that is not part of the content that you want to show.For example if you have an
AnimatedNavHost
inside the content ofCollapsingToolbarScaffold
to manage the screens, the button inside those screens is different, but won't be shown at the bottom of the screen (over the content), but it will be shown at the bottom of the content.To summarize, is there any way to "flag" a composable, so that it is not influenced by the scrolling state, but is independent and still part of the
CollapsingToolbarScaffold
content?The text was updated successfully, but these errors were encountered: