-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[compose-latest] Update samples on compose-latest branch to Compose 1.3.0-beta01 #967
[compose-latest] Update samples on compose-latest branch to Compose 1.3.0-beta01 #967
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll finish this off for Sim once Accompanist is ready |
25cc0b9
to
345fbda
Compare
@@ -148,8 +148,6 @@ fun ConversationContent( | |||
channelMembers = uiState.channelMembers, | |||
onNavIconPressed = onNavIconPressed, | |||
scrollBehavior = scrollBehavior, | |||
// Use statusBarsPadding() to move the app bar content below the status bar | |||
modifier = Modifier.statusBarsPadding(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Jetchat/app/src/main/java/com/example/compose/jetchat/components/JetchatAppBar.kt
Outdated
Show resolved
Hide resolved
@@ -239,7 +242,6 @@ fun ProfileFab( | |||
modifier: Modifier = Modifier, | |||
onFabClicked: () -> Unit = { } | |||
) { | |||
|
|||
key(userIsMe) { // Prevent multiple invocations to execute during composition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure this key does nothing and was just working around not using derivedStateOf
above but I left it in anyway for now
widthProgress: () -> Float, | ||
modifier: Modifier | ||
) { | ||
Layout( | ||
modifier = modifier, | ||
content = { | ||
icon() | ||
Box(modifier = Modifier.alpha(opacityProgress())) { | ||
Box(modifier = Modifier.graphicsLayer { alpha = opacityProgress() }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lambdas being used weren't actually doing any defering because they were being read here in a non-lambda modifier. Fixed by switching to graphicsLayer
) { progress -> | ||
if (progress == ExpandableFabStates.Collapsed) { | ||
}, | ||
label = "fab_text_opacity" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These labels are for the animation inspector, it's a lint warning not to include them
// Use statusBarsPadding() to move the app bar content below the status bar | ||
modifier = Modifier.statusBarsPadding(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled automatically by TopAppBar
Update samples on compose-latest branch to Compose 1.3.0-beta01