ui_guard 1.1.0
ui_guard: ^1.1.0 copied to clipboard
Easily manage role, permission, and condition-based access control in Flutter UIs — entirely in Dart.
Changelog #
1.1.0 #
Added #
GuardNotifierfor reactive access-control updates viaChangeNotifier.AccessPolicyandPolicyGuardfor reusable named authorization rules.AccessDecisionand decision callbacks for richer allow/deny diagnostics.ScheduleParserwith advanced cron support (*/step, aliases likeMON, and macros like@daily).- GitHub Actions workflows for CI checks and automated pub.dev publishing.
Improved #
AccessGuard,RoleBasedView, andCombinedGuardnow support optionalrebuildListenableandonDecisioncallbacks.ScheduleGuardnow supports UTC evaluation and clearer cron validation messages.- Added
RELEASING.mdchecklist to streamline merge-to-pub.dev publishing.
1.0.4 #
Updated #
- Upgraded
flutter_lintsto^6.0.0in both package and example project to keep lint rules current.
1.0.3 #
Added #
TimedAccessGuard: show or hide UI elements based on a configurable time window- Supports automatic refresh with customizable check intervals
- Optional callback to get remaining time updates
- Useful for limited-time offers, maintenance messages, and beta access banners
Improved #
- Updated README with TimedAccessGuard usage examples and best practices
1.0.2 #
Added #
CombinedGuard: combine roles, permissions, and custom runtime conditionsGuardConfig.developerOverrideEnabled: override all restrictions during development
Improved #
- Updated README with usage examples, GitHub badge, and contribution guidelines
- Added gallery and use-case section for better documentation