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

placeholderScale with BoxFit.cover doesn't work #2

Open
eliezerp3 opened this issue Apr 9, 2021 · 1 comment
Open

placeholderScale with BoxFit.cover doesn't work #2

eliezerp3 opened this issue Apr 9, 2021 · 1 comment

Comments

@eliezerp3
Copy link

I have an image that i am using BoxFit.cover for. The problem is that it makes the spinner massive. I tried to use placeholderScale to shrink but it doesn't do anything.

FadeInImage.assetNetwork(
                  placeholder: cupertinoActivityIndicatorSmall,
                  placeholderScale: .2, //tried bunch numbers; doesn't change
                  image: imageUrl,
                  height: 150,
                  width: MediaQuery.of(context).size.width,
                  fit: BoxFit.cover,
                ),
              ),
@rayliverified
Copy link
Collaborator

Can you please share an image?
Using the small variant should collapse the height. Unless the image is a square or fixed height. In that case, you should use the regular version instead and the scale will work.

Inversely, the higher the scale number, the smaller the spinner.
Please view the demo to see how the number correlates to the size.

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

2 participants