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

Commit

Permalink
Update to Compose Material 3 1.0.0-alpha09
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Rout committed Apr 19, 2022
1 parent c11f127 commit a9452ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a9452ac

Please sign in to comment.