gdpr_ads 1.1.0+2 gdpr_ads: ^1.1.0+2 copied to clipboard
GDPR service, GDPR intermediate screen, Admob manager for loading and displaying
Example #
There are two methods of using this package. Both aim at having the GDPR and Ads configuration in one place. Loading and showing Ads works the same for the two methods.
The first one is using the [GdprScreenManager] and is recommended.
The other is to create a [GdprScreenWrapper] yourself.
GDPR Screen Manager #
How to show an GdprScreen:
Scaffold(body:
GdprScreenManager.getInitialGdprScreen());
Scaffold(body:
GdprScreenManager.getInitialResetGdprScreen());
Scaffold(body:
GdprScreenManager.getUpdateGdprScreen());
GDPR Screen Wrapper #
The widget below is a simple wrapper to make [GdprInitialScreen] and [GdprUpdateScreen] reusable with the same configuration.