dreamsoftin / facebook_audience_network

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

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

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',
        ),
      ),

148950381-9041fced-1fd5-4985-8428-58a383e01a9c

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