lslv1243 / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
7 stars 4 forks source link

Native Banner Ads and Banner Ads background or Title color is not change. #1

Open aakashch0179 opened 2 years ago

aakashch0179 commented 2 years ago

Native Banner Ads And Banner Ads Background Color Error

In my app Native Banner Ads can not change the background color white and Banner Ads throw the background color black how can fix this issue pls help.

NativeAd(
        placementId: "3025685484414127_3025692344413441",
        adType: NativeAdType.NATIVE_BANNER_AD,
        bannerAdSize: NativeBannerAdSize.HEIGHT_100,
        width: double.infinity,
        height: MediaQuery.of(context).size.height * 0.12,
        backgroundColor: Colors.white,
        titleColor: Colors.black,
        descriptionColor: Colors.grey,
        buttonColor: Colors.blueAccent,
        buttonTitleColor: Colors.white,
        buttonBorderColor: Colors.white,
        listener: NativeAdListener(
          onError: (code, message) =>
              print('native banner ad error\ncode: $code\nmessage:$message'),
          onLoaded: () => print('native banner ad loaded'),
          onMediaDownloaded: () => 'native banner ad media downloaded',
        ),
      ),

WhatsApp Image 2022-01-11 at 6 50 18 PM

How can I change this black background color to white and the white title color to black?