Skip to main content

Light Popup Ad Format

  • A full-screen ad format.
  • Displays an ad as a popup over your app screen.
  • Android light popup example
Android Light Popup Example Pn
  • iOS light popup example
Ios Light Popup Example Pn

Creating Instance and Setting Callbacks

Create a DaroLightPopupAd instance and set up callbacks.

Loading Ads

Call load() to load an ad.

Showing Ads

Check if the ad is ready with isReady(), then display it with show().

Hide the status bar during iOS ads

Available in Flutter SDK 2.0.5 and later. Enable hideStatusBarDuringFullscreenAd when the status bar overlaps an ad’s close control. It defaults to false and does not change system UI on Android.
The SDK completes the status bar hide request before showing the ad. After dismissal or a presentation failure, it restores SystemUiMode.edgeToEdge by default. Returning from show() does not mean that the ad has ended, so do not restore the status bar immediately after that call. On iOS with this option enabled, calling load() or show() on the same instance before its ad presentation session ends throws StateError. Do not preload that instance from onAdShown; call load() after onAdDismiss or onAdFailedToShow instead. If your app normally hides the status bar or uses manual system UI settings, specify the configuration to restore. Flutter has no API for reading the current system UI configuration, so the SDK cannot automatically recover an arbitrary previous configuration.
Calling dispose() while the popup is visible closes it and restores the status bar after dismissal completes. SystemUiMode.manual requires an overlays list. An empty list requests that all system UI overlays remain hidden. Overlapping active ad sessions share the first session’s restore configuration, which is applied after the last session ends. If your app changes SystemChrome settings during an ad, the SDK’s restore configuration may be applied afterward.
Status bar behavior depends on the Flutter and iOS versions, UIViewControllerBasedStatusBarAppearance, and which controller owns the ad screen’s status bar. A Flutter issue reports ignored SystemChrome settings when an app built with the iOS 27 SDK sets this key to NO. When changing the key, verify your app’s status bar behavior and ad presentation and dismissal with your ad demand sources.

Releasing Resources

Call dispose() to release resources when done, including from your widget’s State.dispose(). Create a new instance instead of reusing one after disposal. Create the ad instance in initState() and keep it when rotation causes build() to run again. An orientation change alone does not require another ad load. The native SDK adjusts the existing ad’s layout, following the orientations supported by your app.

Style Customization

Use DaroLightPopupStyle to customize the UI of light popup ads. Pass Flutter Color objects directly.

Style Properties

Implementation Example