Update compose-bom to v2023.11.00-alpha01

This commit is contained in:
FooIbar committed 2023-10-05 15:11:35 +08:00
1 parent 0634898cb6
commit 8433df09e3
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ dependencies {
// https://developer.android.com/jetpack/androidx/releases/compose-material3 // https://developer.android.com/jetpack/androidx/releases/compose-material3
// api(platform("androidx.compose:compose-bom:2023.05.00")) // api(platform("androidx.compose:compose-bom:2023.05.00"))
api(platform("dev.chrisbanes.compose:compose-bom:2023.07.00-alpha02")) api(platform("dev.chrisbanes.compose:compose-bom:2023.11.00-alpha01"))
implementation("androidx.compose.material:material-icons-extended") implementation("androidx.compose.material:material-icons-extended")
implementation("androidx.compose.material3:material3") implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material3:material3-window-size-class") implementation("androidx.compose.material3:material3-window-size-class")
@@ -52,10 +52,10 @@ fun SelectSiteScreen() {
) )
Spacer(modifier = Modifier.weight(1f)) Spacer(modifier = Modifier.weight(1f))
SingleChoiceSegmentedButtonRow { SingleChoiceSegmentedButtonRow {
SegmentedButton(selected = !siteEx, onClick = { siteEx = false }, shape = SegmentedButtonDefaults.shape(0, 2)) { SegmentedButton(selected = !siteEx, onClick = { siteEx = false }, shape = SegmentedButtonDefaults.itemShape(0, 2)) {
Text(text = stringResource(id = R.string.site_e)) Text(text = stringResource(id = R.string.site_e))
} }
SegmentedButton(selected = siteEx, onClick = { siteEx = true }, shape = SegmentedButtonDefaults.shape(1, 2)) { SegmentedButton(selected = siteEx, onClick = { siteEx = true }, shape = SegmentedButtonDefaults.itemShape(1, 2)) {
Text(text = stringResource(id = R.string.site_ex)) Text(text = stringResource(id = R.string.site_ex))
} }
} }