native_admob_flutter
native_admob_flutter copied to clipboard
Adaptive banner not getting size properly
return SafeArea(
child: Stack(
children: [
Column(
children: <Widget>[
Provider.of<AdState>(context).initialized
?
Container(
color: Theme.of(context).primaryColor,
width: double.infinity,
height: 150, // just to test it
child: BannerAd(
builder: (context, child) {
return child;
},
size: BannerSize.ADAPTIVE,
),
)
: Container(),
Expanded(child: child!),
],
),
],
),
);

Shouldn't it cover more of the blue and/or the black area?
You can't define a height for it. Adaptive banner works this way:
It gets the current available width and provides you a height for the banner. The height will vary, but it should cover the whole width.
You can't define a height for it. Adaptive banner works this way:
It gets the current available width and provides you a height for the banner. The height will vary, but it should cover the whole width.
you can see the black area on both sides