feat: update demo

This commit is contained in:
2024-01-17 15:12:06 +08:00
parent 94ae49bfd8
commit 2377178350

View File

@@ -158,6 +158,7 @@ fun MainHomePage(modifier: Modifier) {
AreaBox(modifier = Modifier.fillMaxWidth()) { Text(strings.appDescription) } AreaBox(modifier = Modifier.fillMaxWidth()) { Text(strings.appDescription) }
SecondarySpacer() SecondarySpacer()
AreaColumn(modifier = Modifier.fillMaxWidth()) { AreaColumn(modifier = Modifier.fillMaxWidth()) {
val locales = locales()
var locale by remember { Preferences.locale } var locale by remember { Preferences.locale }
StickyHeaderBar( StickyHeaderBar(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
@@ -178,7 +179,7 @@ fun MainHomePage(modifier: Modifier) {
onExpandedChange = { expanded = it }, onExpandedChange = { expanded = it },
text = { Text(locale.toName()) }, text = { Text(locale.toName()) },
) { ) {
locales().forEach { locales.forEach {
DropdownMenuItem( DropdownMenuItem(
actived = locale == it, actived = locale == it,
onClick = { onClick = {