mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
feat: update demo
This commit is contained in:
@@ -65,6 +65,7 @@ import com.highcapable.flexiui.component.LinearProgressIndicator
|
|||||||
import com.highcapable.flexiui.component.NavigationBarItem
|
import com.highcapable.flexiui.component.NavigationBarItem
|
||||||
import com.highcapable.flexiui.component.NavigationBarRow
|
import com.highcapable.flexiui.component.NavigationBarRow
|
||||||
import com.highcapable.flexiui.component.PrimaryAppBar
|
import com.highcapable.flexiui.component.PrimaryAppBar
|
||||||
|
import com.highcapable.flexiui.component.PrimarySpacer
|
||||||
import com.highcapable.flexiui.component.Scaffold
|
import com.highcapable.flexiui.component.Scaffold
|
||||||
import com.highcapable.flexiui.component.SecondarySpacer
|
import com.highcapable.flexiui.component.SecondarySpacer
|
||||||
import com.highcapable.flexiui.component.SecondaryText
|
import com.highcapable.flexiui.component.SecondaryText
|
||||||
@@ -373,7 +374,7 @@ fun MainComponentPage(modifier: Modifier) {
|
|||||||
}
|
}
|
||||||
SecondarySpacer()
|
SecondarySpacer()
|
||||||
AreaColumn(modifier = Modifier.fillMaxWidth()) {
|
AreaColumn(modifier = Modifier.fillMaxWidth()) {
|
||||||
var useCircularIndicator by remember { mutableStateOf(true) }
|
var useCircularIndicator by remember { mutableStateOf(false) }
|
||||||
var indeterminate by remember { mutableStateOf(false) }
|
var indeterminate by remember { mutableStateOf(false) }
|
||||||
var progress by remember { mutableStateOf(30f) }
|
var progress by remember { mutableStateOf(30f) }
|
||||||
StickyHeaderBar(
|
StickyHeaderBar(
|
||||||
@@ -414,12 +415,12 @@ fun MainComponentPage(modifier: Modifier) {
|
|||||||
onClick = { progress = 100f }
|
onClick = { progress = 100f }
|
||||||
) { Text(strings.progressTo100, singleLine = true) }
|
) { Text(strings.progressTo100, singleLine = true) }
|
||||||
}
|
}
|
||||||
SecondarySpacer()
|
PrimarySpacer()
|
||||||
SwitchItem(
|
SwitchItem(
|
||||||
checked = useCircularIndicator,
|
checked = useCircularIndicator,
|
||||||
onCheckedChange = { useCircularIndicator = it }
|
onCheckedChange = { useCircularIndicator = it }
|
||||||
) { Text(strings.useCircularIndicator) }
|
) { Text(strings.useCircularIndicator) }
|
||||||
SecondarySpacer()
|
PrimarySpacer()
|
||||||
SwitchItem(
|
SwitchItem(
|
||||||
checked = indeterminate,
|
checked = indeterminate,
|
||||||
onCheckedChange = { indeterminate = it }
|
onCheckedChange = { indeterminate = it }
|
||||||
|
Reference in New Issue
Block a user