MaxNativeAdMediaView constructor

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

Displays a transparent Container as a placeholder for the media view. The platform overlays it with the native 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,
});