Skip to content

Commit a22fc96

Browse files
committed
minor changes.
1 parent b302ce2 commit a22fc96

File tree

1 file changed

+103
-14
lines changed

1 file changed

+103
-14
lines changed

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

Lines changed: 103 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,118 @@ fun ShowScreen() {
5151
when(currentPage){
5252
0 -> { ShowGrid() }
5353

54-
1 -> { RotatingPlane(Modifier.background(BurntOrange).fillMaxSize()) }
54+
1 -> {
55+
RotatingPlane(
56+
modifier = Modifier
57+
.background(BurntOrange)
58+
.fillMaxSize(),
59+
size = DpSize(60.dp, 60.dp
60+
)
61+
)
62+
}
5563

56-
2 -> { ChasingDots(Modifier.background(Charcoal).fillMaxSize()) }
64+
2 -> {
65+
ChasingDots(
66+
modifier = Modifier
67+
.background(Charcoal)
68+
.fillMaxSize(),
69+
size = 60.dp
70+
)
71+
}
5772

58-
3 -> { DoubleBounce(Modifier.background(MountainMeadow).fillMaxSize()) }
73+
3 -> {
74+
DoubleBounce(
75+
modifier = Modifier
76+
.background(MountainMeadow)
77+
.fillMaxSize(),
78+
size = DpSize(60.dp, 60.dp)
79+
)
80+
}
5981

60-
4 -> { Wave(Modifier.background(StarCommandBlue).fillMaxSize()) }
82+
4 -> {
83+
Wave(
84+
modifier = Modifier
85+
.background(StarCommandBlue)
86+
.fillMaxSize(),
87+
size = 60.dp
88+
)
89+
}
6190

62-
5 -> { WanderingCubes(Modifier.background(BattleshipGrey).fillMaxSize()) }
91+
5 -> {
92+
WanderingCubes(
93+
modifier = Modifier
94+
.background(BattleshipGrey)
95+
.fillMaxSize(),
96+
size = DpSize(60.dp, 60.dp)
97+
)
98+
}
6399

64-
6 -> { Pulse(Modifier.background(MaximumYellowRed).fillMaxSize()) }
100+
6 -> {
101+
Pulse(
102+
modifier = Modifier
103+
.background(MaximumYellowRed)
104+
.fillMaxSize(),
105+
size = DpSize(60.dp, 60.dp)
106+
)
107+
}
65108

66-
7 -> { ChasingTwoDots(Modifier.background(BurntOrange).fillMaxSize()) }
109+
7 -> {
110+
ChasingTwoDots(
111+
modifier = Modifier
112+
.background(BurntOrange)
113+
.fillMaxSize(),
114+
size = DpSize(60.dp, 60.dp)
115+
)
116+
}
67117

68-
8 -> { ThreeBounce(Modifier.background(GOGreen).fillMaxSize()) }
118+
8 -> {
119+
ThreeBounce(
120+
modifier = Modifier
121+
.background(GOGreen)
122+
.fillMaxSize(),
123+
size = DpSize(60.dp, 60.dp)
124+
)
125+
}
69126

70-
9 -> { Circle(Modifier.background(BurntOrange).fillMaxSize()) }
127+
9 -> {
128+
Circle(
129+
modifier = Modifier
130+
.background(BurntOrange)
131+
.fillMaxSize(),
132+
size = 60.dp
133+
)
134+
}
71135

72-
10 -> { CubeGrid(Modifier.background(Charcoal).fillMaxSize()) }
136+
10 -> {
137+
CubeGrid(
138+
modifier = Modifier
139+
.background(Charcoal)
140+
.fillMaxSize(),
141+
size = DpSize(60.dp, 60.dp)
142+
)
143+
}
73144

74-
11 -> { FadingCircle(Modifier.background(MountainMeadow).fillMaxSize()) }
145+
11 -> {
146+
FadingCircle(
147+
modifier = Modifier
148+
.background(MountainMeadow)
149+
.fillMaxSize(),
150+
size = 60.dp
151+
)
152+
}
75153

76-
12 -> { FoldingCube(Modifier.background(StarCommandBlue).fillMaxSize()) }
154+
12 -> {
155+
FoldingCube(
156+
modifier = Modifier
157+
.background(StarCommandBlue)
158+
.fillMaxSize(),
159+
size = DpSize(60.dp, 60.dp)
160+
)
161+
}
77162

78-
13 -> { InstaSpinner(Modifier.background(BattleshipGrey).fillMaxSize()) }
163+
13 -> {
164+
InstaSpinner(Modifier.background(BattleshipGrey).fillMaxSize())
165+
}
79166

80167
14 -> {
81168
LoadingBar(
@@ -87,7 +174,9 @@ fun ShowScreen() {
87174
)
88175
}
89176

90-
15 -> { LoadingDots(Modifier.background(GOGreen).fillMaxSize(),"Loading") }
177+
15 -> {
178+
LoadingDots(Modifier.background(GOGreen).fillMaxSize(),"Loading")
179+
}
91180
}
92181
}
93182
}

0 commit comments

Comments
 (0)