Refactor(ToolsScreen and ToolStarScreen): Remove showing indicator when loading
This commit is contained in:
@@ -380,4 +380,4 @@ fun ToolCardSkeleton(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const val DEFAULT_TOOL_CARD_SKELETON_COUNT = 8
|
const val DEFAULT_TOOL_CARD_SKELETON_COUNT = 20
|
||||||
|
|||||||
@@ -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.DialogClickerRow
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
|
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.DialogTitle
|
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.ToolCard
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
|
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
|
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
|
||||||
@@ -97,7 +96,6 @@ internal fun StarScreen(
|
|||||||
) {
|
) {
|
||||||
when (starScreenUiState) {
|
when (starScreenUiState) {
|
||||||
StarScreenUiState.Loading -> {
|
StarScreenUiState.Loading -> {
|
||||||
Indicator()
|
|
||||||
LazyVerticalStaggeredGrid(
|
LazyVerticalStaggeredGrid(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize(),
|
.fillMaxSize(),
|
||||||
|
|||||||
@@ -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.DialogClickerRow
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
|
import top.fatweb.oxygen.toolbox.ui.component.DialogSectionGroup
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.DialogTitle
|
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.ToolCard
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
|
import top.fatweb.oxygen.toolbox.ui.component.ToolCardSkeleton
|
||||||
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
|
import top.fatweb.oxygen.toolbox.ui.component.scrollbar.DraggableScrollbar
|
||||||
@@ -117,7 +116,6 @@ internal fun ToolsScreen(
|
|||||||
|
|
||||||
when (toolsScreenUiState) {
|
when (toolsScreenUiState) {
|
||||||
ToolsScreenUiState.Loading -> {
|
ToolsScreenUiState.Loading -> {
|
||||||
Indicator()
|
|
||||||
LazyVerticalStaggeredGrid(
|
LazyVerticalStaggeredGrid(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize(),
|
.fillMaxSize(),
|
||||||
|
|||||||
Reference in New Issue
Block a user