Skip to content

Commit

Permalink
[feature/review_star_view]: add Review detail
Browse files Browse the repository at this point in the history
  • Loading branch information
kez-lab committed Oct 11, 2023
1 parent c502a01 commit 4d87470
Showing 1 changed file with 32 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,35 +60,44 @@ fun ReviewDetailScreen() {
userName = "햄식이",
ratingList = mockRatingList
)
Box(
FoodImage(
modifier = Modifier
.fillMaxWidth()
.aspectRatio(1f)
.padding(top = 24.dp)
) {
Image(
modifier = Modifier.fillMaxSize(),
painter = painterResource(id = R.drawable.food_ex_2),
contentDescription = "more"
)
LocationButton(
modifier = Modifier
.align(Alignment.BottomStart)
.padding(
start = 16.dp,
bottom = 16.dp
)
)
}
}
}

@Composable
private fun FoodImage(
modifier: Modifier = Modifier
) {
Box(
modifier = modifier
) {
Image(
modifier = Modifier.fillMaxSize(),
painter = painterResource(id = R.drawable.food_ex_2),
contentDescription = "more"
)
LocationButton(
modifier = Modifier
.align(Alignment.BottomStart)
.padding(
start = 16.dp,
bottom = 16.dp
)
PageInfo(
modifier = Modifier
.align(Alignment.BottomEnd)
.padding(
end = 16.dp,
bottom = 16.dp
)
)
PageInfo(
modifier = Modifier
.align(Alignment.BottomEnd)
.padding(
end = 16.dp,
bottom = 16.dp
)
}
}
)
}
}

Expand Down

0 comments on commit 4d87470

Please sign in to comment.