Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact (Overflow) #88

Open
AtjonTV opened this issue Jun 14, 2023 · 0 comments
Open

Artifact (Overflow) #88

AtjonTV opened this issue Jun 14, 2023 · 0 comments

Comments

@AtjonTV
Copy link

AtjonTV commented Jun 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant