update bottom bar interface
This commit is contained in:
+15
-11
@@ -13,6 +13,7 @@ import androiddev.apps.vbox.client.shared.generated.resources.star
|
||||
import androiddev.apps.vbox.client.shared.generated.resources.star_unchecked
|
||||
import androiddev.apps.vbox.client.shared.generated.resources.user_tags
|
||||
import androiddev.apps.vbox.client.shared.generated.resources.watch
|
||||
import androidx.compose.animation.AnimatedContent
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Box
|
||||
@@ -93,21 +94,24 @@ fun OverviewScreen(component: OverviewComponent) {
|
||||
},
|
||||
scrollBehavior = scrollBehavior,
|
||||
snackbarState = snackbarState,
|
||||
content = {
|
||||
when {
|
||||
content = { padding ->
|
||||
AnimatedContent(details) {
|
||||
when {
|
||||
|
||||
errorState != null -> ErrorAndRetry(
|
||||
errorMsg = errorState!!
|
||||
) { component.loadDetailsIfNeeded() }
|
||||
errorState != null -> ErrorAndRetry(
|
||||
errorMsg = errorState!!
|
||||
) { component.loadDetailsIfNeeded() }
|
||||
|
||||
details != null -> DetailsInfo(
|
||||
details = details!!,
|
||||
paddingValues = it,
|
||||
onWatchClicked = { component.watch() }
|
||||
)
|
||||
details != null -> DetailsInfo(
|
||||
details = details!!,
|
||||
paddingValues = padding,
|
||||
onWatchClicked = { component.watch() }
|
||||
)
|
||||
|
||||
else -> Loading()
|
||||
else -> Loading()
|
||||
}
|
||||
}
|
||||
|
||||
if (tagsBottomSheetVisible) {
|
||||
val allTags by component.allTags.collectAsState(null)
|
||||
val movieTags by component.movieTags.collectAsState(null)
|
||||
|
||||
Reference in New Issue
Block a user