privacy_policy_plus 1.1.3
privacy_policy_plus: ^1.1.3 copied to clipboard
A Flutter package to quickly display a customizable privacy policy page, with region skip/force logic and shared_preferences integration.
Changelog #
All notable changes to this project will be documented in this file.
1.1.3 - 2025-08-06 #
Added #
- Text color customization properties for better foreground/background contrast control
titleTextColor
property to customize the privacy policy title text colorcontentTextColor
property to customize policy item text and bullet point colorslinkTextColor
property to customize privacy policy and terms of service link colors
Fixed #
- Resolved text visibility issues when using custom background colors
- Improved text contrast for better readability across different theme configurations
1.1.2 - 2025-08-03 #
Added #
- Version control mechanism for privacy policy updates
isAcceptedForVersion()
method to check acceptance for specific policy versionssetAcceptedForVersion()
method to record acceptance with version trackinggetAcceptedVersion()
andgetAcceptedAt()
methods for version history
Changed #
- Simplified version control logic to use string comparison instead of complex version parsing
- Enhanced constructor to accept
policyVersion
parameter for automatic version management - Improved backward compatibility with existing acceptance records
Removed #
- Removed unnecessary
enableVersionControl
flag for cleaner API
1.1.0 - 2025-05-20 #
Changed #
- Updated README documentation to clarify the usage and behavior of
skipRegionList
andonlyRegionList
parameters with improved comments and examples.
1.0.1 - 2025-05-20 #
Changed #
- Changed
getDeviceCountryCode()
to useui.PlatformDispatcher.instance.locale
instead of the deprecatedui.window.locale
for better compatibility with Flutter 3.7+. - Removed all
dart:io
dependencies to improve web platform support.
1.0.0 - 2025-05-20 #
Added #
- Initial release.
- Display privacy policy and consent page with a single line of code.
- Support for custom app icon, policy items, button text, and actions.
- Support for privacy policy/terms of service links.
- Region-based display logic (
skipRegionList
,onlyRegionList
). - Built-in shared_preferences support for consent persistence.
- Customizable
onAccept
/onReject
callbacks. - Flexible API for easy integration and extension.