Skip to content
Snippets Groups Projects
Commit f720e6e6 authored by Sebastian Kürten's avatar Sebastian Kürten
Browse files

Widgets gallery: display puppy list first

parent 150b722c
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ fun MainView() { ...@@ -41,7 +41,7 @@ fun MainView() {
@Composable @Composable
fun WidgetsPanel() { fun WidgetsPanel() {
val widgetsTypeState = rememberSaveable { mutableStateOf(WidgetsType.sortedValues.first()) } val widgetsTypeState = rememberSaveable { mutableStateOf(WidgetsType.values().first()) }
val panelState = remember { PanelState() } val panelState = remember { PanelState() }
val animatedSize = if (panelState.splitter.isResizing) { val animatedSize = if (panelState.splitter.isResizing) {
...@@ -89,7 +89,7 @@ private fun WidgetsListView(widgetsTypeState: MutableState<WidgetsType>) { ...@@ -89,7 +89,7 @@ private fun WidgetsListView(widgetsTypeState: MutableState<WidgetsType>) {
val fontSize = 14.sp val fontSize = 14.sp
val lineHeight = fontSize.toDp() * 1.5f val lineHeight = fontSize.toDp() * 1.5f
val sortedItems = WidgetsType.sortedValues val sortedItems = WidgetsType.values()
LazyColumn( LazyColumn(
modifier = Modifier.fillMaxSize().withoutWidthConstraints(), modifier = Modifier.fillMaxSize().withoutWidthConstraints(),
state = scrollState state = scrollState
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment