remembering size of the robohash picture
This commit is contained in:
@@ -34,8 +34,10 @@ fun RobohashAsyncImage(
|
|||||||
) {
|
) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val size = with(LocalDensity.current) {
|
val size = with(LocalDensity.current) {
|
||||||
|
remember {
|
||||||
robotSize.roundToPx()
|
robotSize.roundToPx()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val imageRequest = remember(robotSize, robot) {
|
val imageRequest = remember(robotSize, robot) {
|
||||||
Robohash.imageRequest(
|
Robohash.imageRequest(
|
||||||
|
|||||||
Reference in New Issue
Block a user