mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
feat: update demo
This commit is contained in:
@@ -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 = {
|
||||||
|
Reference in New Issue
Block a user