Reputation: 25
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 ?
and this is after ad showing
Upvotes: 0
Views: 221
Reputation: 323
You can try conditional rendering like:
isShowAd ? AdBanner() : const SizedBox.shrink()
SizedBox.shrink() will not take extra space if there is no ad
Upvotes: 1