Added spinning indicator to install screen
This commit is contained in:
parent
138f372644
commit
66c4899d66
1 changed files with 9 additions and 6 deletions
|
|
@ -8,10 +8,13 @@ package com.aliucord.manager.ui.screens
|
|||
import android.content.Intent
|
||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material3.CircularProgressIndicator
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.content.FileProvider
|
||||
import com.aliucord.libzip.Zip
|
||||
import com.aliucord.manager.BuildConfig
|
||||
|
|
@ -202,11 +205,11 @@ fun InstallerScreen(navigator: DestinationsNavigator, apk: File?) {
|
|||
|
||||
Spacer(Modifier.weight(1f, true))
|
||||
|
||||
// LinearProgressIndicator(
|
||||
// modifier = Modifier
|
||||
// .fillMaxWidth()
|
||||
// .height(8.dp),
|
||||
// progress = 0.5f
|
||||
// )
|
||||
CircularProgressIndicator(
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterHorizontally)
|
||||
.padding(8.dp)
|
||||
.size(32.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue