mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 13:57:10 +09:00
DROID-2709 Tech | Glide, compose (#1454)
This commit is contained in:
parent
edc061d2d6
commit
024129828e
3 changed files with 8 additions and 2 deletions
|
@ -181,6 +181,7 @@ dependencies {
|
|||
implementation libs.constraintLayout
|
||||
implementation libs.composeConstraintLayout
|
||||
implementation libs.glide
|
||||
implementation libs.glideCompose
|
||||
implementation libs.coilCompose
|
||||
implementation libs.dagger
|
||||
implementation libs.timber
|
||||
|
|
|
@ -60,6 +60,8 @@ import com.anytypeio.anytype.presentation.widgets.WidgetId
|
|||
import com.anytypeio.anytype.presentation.widgets.WidgetView
|
||||
import com.anytypeio.anytype.presentation.widgets.getWidgetObjectName
|
||||
import com.anytypeio.anytype.ui.widgets.menu.WidgetMenu
|
||||
import com.bumptech.glide.integration.compose.ExperimentalGlideComposeApi
|
||||
import com.bumptech.glide.integration.compose.GlideImage
|
||||
|
||||
@Composable
|
||||
fun DataViewListWidgetCard(
|
||||
|
@ -456,6 +458,7 @@ fun ListWidgetElement(
|
|||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalGlideComposeApi::class)
|
||||
@Composable
|
||||
private fun GalleryWidgetItemCard(
|
||||
item: WidgetView.SetOfObjects.Element,
|
||||
|
@ -510,8 +513,8 @@ private fun GalleryWidgetItemCard(
|
|||
}
|
||||
|
||||
is CoverView.Image -> {
|
||||
Image(
|
||||
painter = rememberAsyncImagePainter(cover.url),
|
||||
GlideImage(
|
||||
model = cover.url,
|
||||
contentDescription = "Cover image",
|
||||
modifier = Modifier
|
||||
.width(136.dp)
|
||||
|
|
|
@ -21,6 +21,7 @@ fragmentVersion = "1.8.1"
|
|||
exoplayerVersion = "2.19.1"
|
||||
wireVersion = "4.9.8"
|
||||
glideVersion = "4.14.2"
|
||||
glideComposeVersion = "1.0.0-beta01"
|
||||
mockitoKotlinVersion = "5.3.1"
|
||||
junitVersion = '4.13.2'
|
||||
androidJunitVersion = "1.2.1"
|
||||
|
@ -102,6 +103,7 @@ wireRuntime = { module = "com.squareup.wire:wire-runtime", version.ref = "wireVe
|
|||
gsonWire = { module = "com.squareup.wire:wire-gson-support", version.ref = "wireVersion" }
|
||||
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glideVersion" }
|
||||
glideCompiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glideVersion" }
|
||||
glideCompose = { module = "com.github.bumptech.glide:compose", version.ref = "glideComposeVersion" }
|
||||
coilCompose = { module = "io.coil-kt:coil-compose", version.ref = "coilComposeVersion" }
|
||||
mockitoKotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockitoKotlinVersion" }
|
||||
junit = { module = "junit:junit", version.ref = "junitVersion" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue