mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 00:39:54 +00:00
A little animation to show progressbar only when needed
This commit is contained in:
parent
00f6822cc5
commit
09045d479c
@ -1,5 +1,6 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.looker.droidify.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.*
|
import androidx.compose.foundation.layout.*
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
@ -48,9 +49,13 @@ fun Header(
|
|||||||
appSize = appSize,
|
appSize = appSize,
|
||||||
appDev = appDev
|
appDev = appDev
|
||||||
)
|
)
|
||||||
DownloadProgress(totalSize = 69420)
|
|
||||||
var buttonState by remember { mutableStateOf<ButtonStates>(Connecting) }
|
var buttonState by remember { mutableStateOf<ButtonStates>(Connecting) }
|
||||||
|
|
||||||
|
AnimatedVisibility(visible = buttonState is Cancelable) {
|
||||||
|
DownloadProgress(totalSize = 69420)
|
||||||
|
}
|
||||||
|
|
||||||
InstallButton(buttonState = buttonState) {
|
InstallButton(buttonState = buttonState) {
|
||||||
buttonState = when (it) {
|
buttonState = when (it) {
|
||||||
Connecting -> Download
|
Connecting -> Download
|
||||||
|
Loading…
x
Reference in New Issue
Block a user