fix platform specific code not working on web
This commit is contained in:
parent
281ea863e8
commit
5135629b33
11 changed files with 29 additions and 14 deletions
|
|
@ -30,7 +30,7 @@ class MihBannerAdProvider extends ChangeNotifier {
|
|||
}
|
||||
|
||||
void loadBannerAd() {
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||
if (bannerAd != null) {
|
||||
bannerAd!.dispose();
|
||||
bannerAd = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue