flutter-carousel-pro icon indicating copy to clipboard operation
flutter-carousel-pro copied to clipboard

Bug autoplay not compatible with google ads

Open zakblacki opened this issue 2 years ago • 0 comments

I have added ad banner condition on carousel like this

List<String> _carouselImages = [];
 Carousel(
                              autoplay: true,
                              autoplayDuration: Duration(microseconds: 1000),
                              images: _carouselImages
                                  .map((images) => images == "ad"
                                      ? BannerAdAdmob()
                                      : ExtendedImage.network(
                                          images,
                                          height: height * 0.26,
                                          width: width,
                                          fit: BoxFit.cover,
                                          cache: true,
                                        ))
                                  .toList()
                              ),

I have also enabled set autoplay: true, but the carousel does not move it only moving with user input manually, but when I remove the google ads it works fine.

zakblacki avatar Mar 18 '22 21:03 zakblacki