|
|
@ -16,7 +16,6 @@ import androidx.compose.foundation.interaction.MutableInteractionSource |
|
|
|
import androidx.compose.foundation.interaction.collectIsHoveredAsState |
|
|
|
import androidx.compose.foundation.interaction.collectIsHoveredAsState |
|
|
|
import androidx.compose.foundation.shape.CircleShape |
|
|
|
import androidx.compose.foundation.shape.CircleShape |
|
|
|
import androidx.compose.material.Card |
|
|
|
import androidx.compose.material.Card |
|
|
|
import androidx.compose.material.CircularProgressIndicator |
|
|
|
|
|
|
|
import androidx.compose.material.Divider |
|
|
|
import androidx.compose.material.Divider |
|
|
|
import androidx.compose.material.MaterialTheme |
|
|
|
import androidx.compose.material.MaterialTheme |
|
|
|
import androidx.compose.material.Surface |
|
|
|
import androidx.compose.material.Surface |
|
|
@ -24,13 +23,12 @@ import androidx.compose.material.Text |
|
|
|
import androidx.compose.material.TopAppBar |
|
|
|
import androidx.compose.material.TopAppBar |
|
|
|
import androidx.compose.runtime.Composable |
|
|
|
import androidx.compose.runtime.Composable |
|
|
|
import androidx.compose.runtime.getValue |
|
|
|
import androidx.compose.runtime.getValue |
|
|
|
import androidx.compose.runtime.mutableStateOf |
|
|
|
|
|
|
|
import androidx.compose.runtime.remember |
|
|
|
import androidx.compose.runtime.remember |
|
|
|
import androidx.compose.ui.Alignment |
|
|
|
import androidx.compose.ui.Alignment |
|
|
|
import androidx.compose.ui.Modifier |
|
|
|
import androidx.compose.ui.Modifier |
|
|
|
import androidx.compose.ui.graphics.asImageBitmap |
|
|
|
|
|
|
|
import androidx.compose.ui.graphics.painter.BitmapPainter |
|
|
|
import androidx.compose.ui.graphics.painter.BitmapPainter |
|
|
|
import androidx.compose.ui.graphics.RectangleShape |
|
|
|
import androidx.compose.ui.graphics.RectangleShape |
|
|
|
|
|
|
|
import androidx.compose.ui.graphics.toComposeImageBitmap |
|
|
|
import androidx.compose.ui.layout.ContentScale |
|
|
|
import androidx.compose.ui.layout.ContentScale |
|
|
|
import androidx.compose.ui.unit.dp |
|
|
|
import androidx.compose.ui.unit.dp |
|
|
|
import example.imageviewer.ResString |
|
|
|
import example.imageviewer.ResString |
|
|
@ -169,7 +167,7 @@ fun Miniature( |
|
|
|
Image( |
|
|
|
Image( |
|
|
|
org.jetbrains.skia.Image.makeFromEncoded( |
|
|
|
org.jetbrains.skia.Image.makeFromEncoded( |
|
|
|
toByteArray(picture.image) |
|
|
|
toByteArray(picture.image) |
|
|
|
).asImageBitmap(), |
|
|
|
).toComposeImageBitmap(), |
|
|
|
contentDescription = null, |
|
|
|
contentDescription = null, |
|
|
|
modifier = Modifier.height(70.dp) |
|
|
|
modifier = Modifier.height(70.dp) |
|
|
|
.width(90.dp) |
|
|
|
.width(90.dp) |
|
|
|