0

I am using admob_flutter package for banner , but my issue is ,when app is offline or there is no ads , ad space is always their like this screenshot. How can I solve this ?

Image1

and this is after ad showing

Image2

P Mahto
  • 25
  • 5

1 Answers1

1

You can try conditional rendering like:

isShowAd ? AdBanner() : const SizedBox.shrink()

SizedBox.shrink() will not take extra space if there is no ad

Huzaifa Ahmed
  • 304
  • 1
  • 3
  • 15