Skip to content

Commit

Permalink
Show progress in post page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcoding810 committed Dec 24, 2024
1 parent 3c47a3e commit 64b5ea2
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand All @@ -14,6 +15,7 @@ import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
Expand Down Expand Up @@ -109,7 +111,14 @@ fun PostPage(appViewModel: AppViewModel, goBack: () -> Unit) {
enter = fadeInWithBlur(),
exit = fadeOutWithBlur(),
) {
HBackIcon { goBack() }
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
HBackIcon { goBack() }
Text("${uiState.postPage}/${uiState.postTotalPage}")
}
}

if (selectedImage != null) {
Expand Down

0 comments on commit 64b5ea2

Please sign in to comment.