flutter_native_admob icon indicating copy to clipboard operation
flutter_native_admob copied to clipboard

Lag when the ad loads

Open ynixt opened this issue 5 years ago • 5 comments
trafficstars

When the application has finished loading the ad, the application experiences a lag before displaying it.

I'm using the code:

return Container(
  child: NativeAdmob(
    adUnitID: 'ca-app-pub-example/example',
    loading: Center(child: CircularProgressIndicator()),
    error: Text('Failed to load the ad'),
    controller: _adController,
    type: NativeAdmobType.full,
    options: NativeAdmobOptions(
      ratingColor: Colors.red,
    ),
  ),
);

Did I do something wrong?

Update:

  • The platform is Android

ynixt avatar Jul 22 '20 23:07 ynixt

Facing the same issue

sidrahassanpk avatar Jul 24 '20 19:07 sidrahassanpk

Lag can be seen both in Android and iOS. @duyduong Is there any solution or reason for the lag? Is it due to the fact that AndroidView and UiKitView does work in the UI thread to embed the view inside flutter widget tree?

sabinbajracharya avatar Jul 25 '20 17:07 sabinbajracharya

Same issue. Especially when used in listview.builder

cmd-dev avatar Aug 26 '20 12:08 cmd-dev

Same here listview..builder too.

daShrike avatar Aug 27 '20 23:08 daShrike

Possible duplicate of https://github.com/duyduong/flutter_native_admob/issues/52

daShrike avatar Aug 27 '20 23:08 daShrike