diff --git a/buildSrc/src/main/java/com/google/android/material/composethemeadapter/dependencies.kt b/buildSrc/src/main/java/com/google/android/material/composethemeadapter/dependencies.kt index feaa81a..e859d69 100644 --- a/buildSrc/src/main/java/com/google/android/material/composethemeadapter/dependencies.kt +++ b/buildSrc/src/main/java/com/google/android/material/composethemeadapter/dependencies.kt @@ -60,7 +60,7 @@ object Libs { const val ui = "androidx.compose.ui:ui:${version}" const val material = "androidx.compose.material:material:${version}" - const val material3 = "androidx.compose.material3:material3:1.0.0-alpha08" + const val material3 = "androidx.compose.material3:material3:1.0.0-alpha09" const val tooling = "androidx.compose.ui:ui-tooling:${version}" const val test = "androidx.compose.ui:ui-test-junit4:${version}" diff --git a/sample/src/main/java/com/google/android/material/composethemeadapter/sample/Material3Integration.kt b/sample/src/main/java/com/google/android/material/composethemeadapter/sample/Material3Integration.kt index b5264ea..6e9c802 100644 --- a/sample/src/main/java/com/google/android/material/composethemeadapter/sample/Material3Integration.kt +++ b/sample/src/main/java/com/google/android/material/composethemeadapter/sample/Material3Integration.kt @@ -54,6 +54,7 @@ import androidx.compose.material3.RadioButton import androidx.compose.material3.Scaffold import androidx.compose.material3.Slider import androidx.compose.material3.SmallFloatingActionButton +import androidx.compose.material3.Switch import androidx.compose.material3.Text import androidx.compose.material3.TextButton import androidx.compose.material3.TextField @@ -197,6 +198,13 @@ fun Material3ComponentsSample() { } VerticalSpacer() + var switchChecked by remember { mutableStateOf(true) } + Switch( + checked = switchChecked, + onCheckedChange = { switchChecked = it } + ) + VerticalSpacer() + var linearProgress by remember { mutableStateOf(0.1f) } val animatedLinearProgress by animateFloatAsState( targetValue = linearProgress,