Premium Offers

TopPremiumOffers Composable Function

Overview

The TopPremiumOffers composable function is designed to display top premium offers within the application. It utilizes the TopOffers composable to render the offers with specific settings.

Parameters:

  • The context parameter is required and should be the context of the widget that will display the top offers widget.

  • The widgetStyle parameter is used to choose the style of the widget. The default style is PremiumWidgetStyles.LIST, which displays the offers in a list. Other available style is PremiumWidgetStyles.SLIDERCARDS, which displays the offers in a slider.

Available Widget Style options

Option 1
Option 2

Return Value:

  • Widget: A Flutter Widget (specifically, a TopOffersWidget) that can be embedded in your application's UI.

Usage

To use this composable, you can call it through the Tyrads instance like this:

Tyrads.getInstance().TopPremiumOffers(
    widgetStyle = Tyrads.PremiumWidgetStyles.SLIDER_CARDS
)

Or, use the default values:

Tyrads.getInstance().TopPremiumOffers()

Last updated