Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit a9452ac

Browse files
author
Nick Rout
committed
Update to Compose Material 3 1.0.0-alpha09
1 parent c11f127 commit a9452ac

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

buildSrc/src/main/java/com/google/android/material/composethemeadapter/dependencies.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ object Libs {
6060

6161
const val ui = "androidx.compose.ui:ui:${version}"
6262
const val material = "androidx.compose.material:material:${version}"
63-
const val material3 = "androidx.compose.material3:material3:1.0.0-alpha08"
63+
const val material3 = "androidx.compose.material3:material3:1.0.0-alpha09"
6464

6565
const val tooling = "androidx.compose.ui:ui-tooling:${version}"
6666
const val test = "androidx.compose.ui:ui-test-junit4:${version}"

sample/src/main/java/com/google/android/material/composethemeadapter/sample/Material3Integration.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import androidx.compose.material3.RadioButton
5454
import androidx.compose.material3.Scaffold
5555
import androidx.compose.material3.Slider
5656
import androidx.compose.material3.SmallFloatingActionButton
57+
import androidx.compose.material3.Switch
5758
import androidx.compose.material3.Text
5859
import androidx.compose.material3.TextButton
5960
import androidx.compose.material3.TextField
@@ -197,6 +198,13 @@ fun Material3ComponentsSample() {
197198
}
198199
VerticalSpacer()
199200

201+
var switchChecked by remember { mutableStateOf(true) }
202+
Switch(
203+
checked = switchChecked,
204+
onCheckedChange = { switchChecked = it }
205+
)
206+
VerticalSpacer()
207+
200208
var linearProgress by remember { mutableStateOf(0.1f) }
201209
val animatedLinearProgress by animateFloatAsState(
202210
targetValue = linearProgress,

0 commit comments

Comments
 (0)