diff --git a/samples/admob/rewarded_interstitial_example/lib/main.dart b/samples/admob/rewarded_interstitial_example/lib/main.dart index 8870fdddc..9e876b60b 100644 --- a/samples/admob/rewarded_interstitial_example/lib/main.dart +++ b/samples/admob/rewarded_interstitial_example/lib/main.dart @@ -242,7 +242,9 @@ class RewardedInterstitialExampleState var canRequestAds = await _consentManager.canRequestAds(); if (canRequestAds) { - _isMobileAdsInitializeCalled = true; + setState(() { + _isMobileAdsInitializeCalled = true; + }); // Initialize the Mobile Ads SDK. MobileAds.instance.initialize();