UniConsent CMP is a package for handling GDPR IAB TCF 2.2 consent management in Flutter apps. You can find a demo app integrated with UniConsent CMP in the "uniconsent_demo" directory.
To include the UniConsent package in your Flutter project, add it as a dependency in your pubspec.yaml file:
Then, sync the dependency by running the following command:
To use the UniConsent CMP in your app, follow these steps:
Initialize the CMP with an App ID from your account manager:
Display the CMP UI:
Automatically check if consent is expired when the vendorList updates:
Get the tcString if required:
Read the consent status:
Reset consent status if required: