Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Alignment not working when crossfade and placeholder is present #3234

@xVemu

Description

@xVemu

Describe the bug
When both crossfade and placeholder are present:
Image

When crossfade or painter is not present:

Image

To Reproduce

val platformContext = LocalPlatformContext.current

AsyncImage(
    ImageRequest.Builder(platformContext).crossfade(true)
        .data("https://www.totalwine.com/media/sys_master/twmmedia/ha5/h01/8799883329566.png")
        .build(),
    contentDescription = "todo.name",
    alignment = Alignment.BottomEnd,
    placeholder = ColorPainter(Color.Red),
    modifier = Modifier
        .size(400.dp)
        .background(Color.Blue),
)

Version

io.coil-kt.coil3:coil-compose
io.coil-kt.coil3:coil-network-ktor3
io.coil-kt.coil3:coil-svg
all version 3.3.0

I tested it on Android 36 and Desktop with same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions