Skip to content

Commit

Permalink
Update dependency androidx.compose:compose-bom to v2023.08.00 (#497)
Browse files Browse the repository at this point in the history
* Update dependency androidx.compose:compose-bom to v2023.08.00

* fix: flow row alignment error

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Anil Kumar Beesetti <[email protected]>
  • Loading branch information
renovate[bot] and anilbeesetti authored Aug 11, 2023
1 parent 3180429 commit 32e58cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.material3.ListItem
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.layout
import androidx.compose.ui.res.stringResource
Expand Down Expand Up @@ -62,21 +61,21 @@ fun FolderItem(
modifier = Modifier.padding(vertical = 2.dp)
)
FlowRow(
modifier = Modifier.fillMaxWidth(),
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 5.dp),
horizontalArrangement = Arrangement.spacedBy(5.dp),
verticalAlignment = Alignment.CenterVertically
verticalArrangement = Arrangement.spacedBy(5.dp)
) {
InfoChip(
text = "${folder.mediaCount} ${
stringResource(
id = R.string.video.takeIf { folder.mediaCount == 1 } ?: R.string.videos
)
}",
modifier = Modifier.padding(vertical = 5.dp)
}"
)
InfoChip(
text = folder.formattedMediaSize,
modifier = Modifier.padding(vertical = 5.dp)
text = folder.formattedMediaSize
)
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,15 @@ fun VideoItem(
modifier = Modifier.padding(vertical = 2.dp)
)
FlowRow(
modifier = Modifier.fillMaxWidth(),
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 5.dp),
horizontalArrangement = Arrangement.spacedBy(5.dp),
verticalAlignment = Alignment.CenterVertically
verticalArrangement = Arrangement.spacedBy(5.dp)
) {
InfoChip(
text = video.formattedFileSize,
modifier = Modifier.padding(vertical = 5.dp)
)
InfoChip(text = video.formattedFileSize)
if (video.width > 0 && video.height > 0) {
InfoChip(
text = "${video.width} x ${video.height}",
modifier = Modifier.padding(vertical = 5.dp)
)
InfoChip(text = "${video.width} x ${video.height}")
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ androidMaterial = "1.9.0"
androidxActivity = "1.7.2"
androidxAppCompat = "1.6.1"
androidxComposeCompiler = "1.4.8"
androidxComposeBom = "2023.06.01"
androidxComposeBom = "2023.08.00"
androidxConstraintLayout = "2.1.4"
androidxCore = "1.10.1"
androidxDataStore = "1.0.0"
Expand Down

0 comments on commit 32e58cf

Please sign in to comment.