compliance_gdpr 0.1.0-beta.1
compliance_gdpr: ^0.1.0-beta.1 copied to clipboard
GDPR building blocks for Flutter - granular consent with policy versioning, data export and account deletion flows, and accessible consent UI.
0.1.0-beta.1 - 2026-10-19 #
First beta release. APIs may change before 1.0.0.
ConsentManager: purposes defined by the app, nothing optional enabled by default, strictly necessary purposes always active, policy versioning (consent from an older version does not count), append-only history,changesstream andwatch(purposeId), one-callwithdraw,reset()for account deletion.ConsentStoreinterface withInMemoryConsentStore; stored records are validated on load.- Consent UI:
showConsentDialog,showConsentBottomSheet,ConsentPrompt,PrivacySettingsScreen,ConsentChoiceButtons,ConsentStrings. Accept and reject use the same widget, style, width and height; one-toggle withdrawal; no dismissal without a choice; save errors shown to the user; screen reader and large-text support; all strings overridable. DataExporterwithDataSource,CallbackDataSourceandRedactingDataSource: one JSON document with metadata, progress reporting, per-source status (ok,failed,timed_out,not_serializable); incomplete redaction is reported as a failure (IncompleteRedactionException).DataDeletionManagerwithDataEraser: required confirmation step, server deletion callback that can report an already deleted account, per-step report (deleted, skipped, failed), local data kept when the server step fails (configurable), retry of failed steps, idempotent and safe against concurrent calls.- Audit events, recorded in the background with
onAuditErrorfor failures:consent_granted,consent_denied,consent_withdrawn,consent_policy_changed,data_exported,data_deletion_requested,data_deletion_completed. No personal data in metadata.