Skip to content

Artifact (Overflow) #88

Description

@AtjonTV

Hello! I am currently building an app where I need to display product images.

As the faded background does not fit our design, I used dimColor: Colors.white to remove it.

After doing so, I noticed that Crop renders width*1 pixels either at the top or the bottom of the widget. This is really noticable with dimColor set to white.

This mostly occures when the image does not have the same aspect ratio as the space in which the widget is rendered.

In the example image below, the source image is a Portrait (dimensions 2592*3840 pixels), and needs to be shown in space no bigger then 300x400.

Very visible example with dim color white:
image

Same can be seen with default dim:
image

Here is the code that created that widget:
image

I have tried to understand how Crop works to fix it myself, but I couldnt find the cause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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