Skip to content
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

Merged
merged 8 commits into from
Aug 29, 2022

Conversation

simona-anomis
Copy link
Contributor

Update samples on compose-latest branch to Compose 1.3.0-beta01

@simona-anomis simona-anomis self-assigned this Aug 24, 2022
@simona-anomis simona-anomis requested a review from a team as a code owner August 24, 2022 20:20
Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bentrengrove
Copy link
Member

I'll finish this off for Sim once Accompanist is ready

@bentrengrove bentrengrove force-pushed the anomis/compose-latest-1.3.0-beta01 branch from 25cc0b9 to 345fbda Compare August 25, 2022 22:23
@@ -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(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@@ -239,7 +242,6 @@ fun ProfileFab(
modifier: Modifier = Modifier,
onFabClicked: () -> Unit = { }
) {

key(userIsMe) { // Prevent multiple invocations to execute during composition
Copy link
Member

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() }) {
Copy link
Member

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"
Copy link
Member

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

Comment on lines -151 to -152
// Use statusBarsPadding() to move the app bar content below the status bar
modifier = Modifier.statusBarsPadding(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled automatically by TopAppBar

@bentrengrove bentrengrove merged commit d3aa517 into compose-latest Aug 29, 2022
@bentrengrove bentrengrove deleted the anomis/compose-latest-1.3.0-beta01 branch August 29, 2022 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants