gskinner / image_fade

BSD 2-Clause "Simplified" License
29 stars 10 forks source link

Placeholder issue #10

Open inludese opened 2 years ago

inludese commented 2 years ago

Placeholder isn't displaying while new image loading.

Inside theSliverList when new item added to it, placeholder not displayed for new item. Old image is displaying until new one is loading

          ImageFade(placeholder: isDarkTheme
                                  ? Graphics.placeholderDarkImage
                                  : Graphics.placeholderLightImage,
                              image: FirebaseImage(_item.getImageUrl(_channel)),
                              errorBuilder: ((context, obj) => isDarkTheme
                                  ? Graphics.placeholderDarkImage
                                  : Graphics.placeholderLightImage),
                              duration: const Duration(milliseconds: 150),
                              syncDuration: const Duration(milliseconds: 0),
                              fit: BoxFit.cover)