MaxNativeAdMediaView constructor

const MaxNativeAdMediaView({
  1. Key? key,
  2. double? width = double.infinity,
  3. double? height = double.infinity,
})

Creates Container for the media view. The platform native ad loader overlays the container with the platform view that contains a media view. The aspect ratio for the media view needs to be adjusted with mediaContentAspectRatio of MaxNativeAd.

Implementation

const MaxNativeAdMediaView({
  super.key,
  this.width = double.infinity,
  this.height = double.infinity,
});