add:add official gallery

This commit is contained in:
2024-07-13 17:55:23 +08:00
parent f6e24d671c
commit 081d4a9ee6
3 changed files with 195 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package com.aiosman.riderpro
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.ScrollableDefaults
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
@@ -102,7 +103,7 @@ fun LocationDetail() {
val configuration = LocalConfiguration.current
val officialGalleryItems = getOfficialGalleryItems()
val feedItems = getFeedItems()
val navController = LocalNavController.current
// 2/3 height of the screen
fun getPeekHeight(): Dp {
@@ -211,7 +212,9 @@ fun LocationDetail() {
Image(
painter = painterResource(id = R.drawable.rider_pro_nav_next),
contentDescription = "Next",
modifier = Modifier.size(24.dp)
modifier = Modifier.size(24.dp).clickable {
navController.navigate("OfficialPhoto")
}
)
}