flutter_native_admob
flutter_native_admob copied to clipboard
Set background color to white
I have an app with a bunch of white cards in a listview. Unfortunately, I keep getting black banner ads and I can't figure out a way to set them to white.
It looks like Admob offers withMainBackgroundColor (https://developers.google.com/admob/android/native/templates?hl=en-US). Is that something that we could tie into to get white backgrounds?
Have you figured out how to do this? The backgrounds of my ads are also showing as black.
@M1Joe @SCVec wrap into a Container, u can set paddings or background
@M1Joe @SCVec wrap into a Container, u can set paddings or background
I tried that, but it doesn't change the color within the ad itself;
Container(
color: Colors.red,
height: displayWidth(context) * 0.9,
width: displayWidth(context) * 0.9,
padding: EdgeInsets.all(displayWidth(context) * 0.02),
margin: EdgeInsets.only(bottom: displayHeight(context) * 0.02),
child: NativeAdmob(
adUnitID: _adUnitID1,
controller: _controller1,
type: NativeAdmobType.full,
),
);
Same problem here, is there any solution for that? Thank you very much in advance.
Any solution for this problem?
I've created a pull request to fix this issue: https://github.com/duyduong/flutter_native_admob/pull/74
Thanks a lot for the valuable contribution. @DFelten
There is a small issue still that a black color is shown for a second right after loading the add with out custom-set background color.
@duyduong the version on the pub.dev still does not have this merge. isn't it ?
@mhassanist It seems this version is not merged on pub.dev yet. I used the master version on pubspec.yaml like this:
flutter_native_admob:
git:
url: git://github.com/duyduong/flutter_native_admob.git
ref: master
commit: 30095d0
@hyungtaecf That was very useful :) Thank you!