Skip to content

Commit

Permalink
* 优化banner展示
Browse files Browse the repository at this point in the history
  • Loading branch information
gstory0404 committed Feb 14, 2025
1 parent ebf0cff commit e737db8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/bannerad/BannerAdView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,11 @@ class _BannerAdViewState extends State<FlutterUnionadBannerView> {
case FlutterUnionadMethod.onShow:
Map map = call.arguments;
print(map);
_isShowAd = true;
_width = (map["width"]).toDouble();
_height = (map["height"]).toDouble();
if (mounted) {
setState(() {
_isShowAd = true;
_width = (map["width"]).toDouble();
_height = (map["height"]).toDouble();
});
setState(() {});
}
widget.callBack?.onShow!();
break;
Expand Down

0 comments on commit e737db8

Please sign in to comment.