Describe the bug
The ad is showing on top of my bottomNavigationBar so the application is unusable.

To Reproduce
Steps to reproduce the behavior:
BannerAd smartSizeBanner = BannerAd(
adUnitId: config.bannerUnitId,
size: AdSize.smartBanner,
listener: (MobileAdEvent event) {
print("BannerAd event is $event");
FirebaseAnalytics().logEvent(name: event.toString());
},
);
smartSizeBanner.load();
smartSizeBanner.show(
anchorType: AnchorType.bottom
);
Widget build(BuildContext context) {
return Scaffold(
...
bottomNavigationBar: BottomNavigationBar(...),
...
);
}
Expected behavior
Maybe hide the ad when the current scaffold contains a bottomNavigationBar, or move the ad above the bottomNavigationBar
The show method has anchorOffset parameter that you can use in this case
banner.show(
anchorOffset: 60.0,
anchorType: AnchorType.bottom,
horizontalCenterOffset: 0.0,
);
Thanks, it works perfectly
Most helpful comment
The show method has
anchorOffsetparameter that you can use in this case