provider
plugin in order to use a global context to store access factories and events, with some listeners. It has to be created through a ChangeNotifierProvider
.appId
{String
} Your Poool App IDdebug
{Boolean
} Enable / Disable logsappId
{String
} Your Poool App ID (it has to be the same used for AccessProvider
)children
{List<Widgets>
} A list of flutter widgetschild
{Widget
} Free content or article's previewchild
{Widget
} Premium contentpageType
{String
} (optional, default: 'premium'
) Current page type (supported types: page
, premium
, free
)config
{Map<String, Object>
} (optional) Paywall config (see the configuration documentation).styles
{Map<String, Object>
} (optional) Paywall styles (see the styles documentation).texts
{Map<String, String>
} (optional) Paywall texts (see the texts documentation).variables
{Map<String, Object>
} (optional) Paywall variables (see the variables documentation).events
{Map<String, Function>
} (optional) Event listeners (see the events documentation).disableViewLoader
{Boolean
} (optional, default: false
) Disables the default view loader (circle progress indicator)customViewLoader
{Widget
} (optional) Choose your own custom view loader to replace the default one if view loader is still enabledreleaseOnError
{Boolean
} (optional, default: false
) Choose between releasing the entire article when Poool is enable to fetch your paywall & config, or keep fully blocking the entire content in RestrictedContent
widget.AccessWrapper
widget. Instead of being displayed in the article, it will bring the Paywall in a native bottom sheet, locking access to your entire app. It mostly has the same props as Paywall
. Since AccessWrapper
isn't needed here, don't forget to bring your appId
.appId
{String
} Your Poool App IDpageType
{String
} (optional, default: 'premium'
) Current page type (supported types: page
, premium
, free
)config
{Map<String, Object>
} (optional) Paywall config (see the configuration documentation).styles
{Map<String, Object>
} (optional) Paywall styles (see the styles documentation).texts
{Map<String, String>
} (optional) Paywall texts (see the texts documentation).variables
{Map<String, Object>
} (optional) Paywall variables (see the variables documentation).events
{Map<String, Function>
} (optional) Event listeners (see the events documentation).releaseOnError
{Boolean
} (optional, default: false
) Choose between releasing the entire article when Poool is enable to fetch your paywall & config, or keep fully blocking the entire content in RestrictedContent
widget.your_device
is the name or id found in the list you get in the step before