FacebookNativeAd constructor
FacebookNativeAd({
- Key? key,
- String placementId = "YOUR_PLACEMENT_ID",
- void listener(
- NativeAdResult,
- dynamic
- required NativeAdType adType,
- NativeBannerAdSize bannerAdSize = NativeBannerAdSize.HEIGHT_50,
- double width = double.infinity,
- double height = 250,
- Color? backgroundColor,
- Color? titleColor,
- Color? descriptionColor,
- Color? labelColor,
- Color? buttonColor,
- Color? buttonTitleColor,
- Color? buttonBorderColor,
- bool isMediaCover = false,
- bool keepAlive = false,
- bool keepExpandedWhileLoading = true,
- int expandAnimationDuraion = 0,
This widget can be used to display customizable native ads and native banner ads.
Implementation
FacebookNativeAd({
Key? key,
this.placementId = "YOUR_PLACEMENT_ID",
this.listener,
required this.adType,
this.bannerAdSize = NativeBannerAdSize.HEIGHT_50,
this.width = double.infinity,
this.height = 250,
this.backgroundColor,
this.titleColor,
this.descriptionColor,
this.labelColor,
this.buttonColor,
this.buttonTitleColor,
this.buttonBorderColor,
this.isMediaCover = false,
this.keepAlive = false,
this.keepExpandedWhileLoading = true,
this.expandAnimationDuraion = 0,
}) : super(key: key);