Refactor(ToolsScreen and ToolStarScreen): Remove showing indicator when loading

This commit is contained in:
2024-08-27 18:35:06 +08:00
parent 4dfb500370
commit c602ce0726
3 changed files with 1 additions and 5 deletions

View File

@@ -380,4 +380,4 @@ fun ToolCardSkeleton(
}
}
const val DEFAULT_TOOL_CARD_SKELETON_COUNT = 8
const val DEFAULT_TOOL_CARD_SKELETON_COUNT = 20

View File

@@ -47,7 +47,6 @@ import top.fatweb.oxygen.toolbox.ui.component.DEFAULT_TOOL_CARD_SKELETON_COUNT
import top.fatweb.oxygen.toolbox.ui.component.DialogClickerRow
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
import top.fatweb.oxygen.toolbox.ui.component.DialogTitle
import top.fatweb.oxygen.toolbox.ui.component.Indicator
import top.fatweb.oxygen.toolbox.ui.component.ToolCard
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
@@ -97,7 +96,6 @@ internal fun StarScreen(
) {
when (starScreenUiState) {
StarScreenUiState.Loading -> {
Indicator()
LazyVerticalStaggeredGrid(
modifier = Modifier
.fillMaxSize(),

View File

@@ -51,7 +51,6 @@ import top.fatweb.oxygen.toolbox.ui.component.DEFAULT_TOOL_CARD_SKELETON_COUNT
import top.fatweb.oxygen.toolbox.ui.component.DialogClickerRow
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
import top.fatweb.oxygen.toolbox.ui.component.DialogTitle
import top.fatweb.oxygen.toolbox.ui.component.Indicator
import top.fatweb.oxygen.toolbox.ui.component.ToolCard
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
@@ -117,7 +116,6 @@ internal fun ToolsScreen(
when (toolsScreenUiState) {
ToolsScreenUiState.Loading -> {
Indicator()
LazyVerticalStaggeredGrid(
modifier = Modifier
.fillMaxSize(),