FlutterLoadingGIFs icon indicating copy to clipboard operation
FlutterLoadingGIFs copied to clipboard

placeholderScale with BoxFit.cover doesn't work

Open eliezerp3 opened this issue 3 years ago • 1 comments

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,
                ),
              ),

eliezerp3 avatar Apr 09 '21 04:04 eliezerp3

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.

rayliverified avatar Apr 09 '21 04:04 rayliverified