Skip to content

Commit a65eb4e

Browse files
committed
insta spinner added.
1 parent be29fed commit a65eb4e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/src/main/java/com/commandiron/composeloading/ShowGrid.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fun ShowGrid(
130130
.background(BattleshipGrey),
131131
contentAlignment = Alignment.Center
132132
) {
133-
InstaSpinner()
133+
InstaSpinner(size = gridSize / 2)
134134
}
135135
Box(
136136
modifier = Modifier

compose-loading/src/main/java/com/commandiron/compose_loading/FoldingCube.kt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.commandiron.compose_loading
22

3-
import androidx.annotation.IntRange
43
import androidx.compose.animation.core.*
54
import androidx.compose.foundation.layout.*
65
import androidx.compose.material3.MaterialTheme

compose-loading/src/main/java/com/commandiron/compose_loading/InstaSpinner.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fun InstaSpinner(
109109
.size(size)
110110
.rotate(rotateDegree.value)
111111
){
112-
val rectSize = Size(width = this.size.width / 6, height = this.size.height / 36)
112+
val rectSize = Size(width = this.size.width / 4, height = this.size.height / 24)
113113
for(i in 0 until 8){
114114
rotate(45f * i){
115115
drawRect(

0 commit comments

Comments
 (0)