casl_dart 1.1.1
casl_dart: ^1.1.1 copied to clipboard
A Dart implementation of CASL.js for managing access control in Flutter apps with dynamic permission handling.
1.1.1 #
Added #
- Context parameter to
abilityBuilderinCan.builder:abilityBuilder: (context, hasPermission) { ... }
1.1.0 #
Added #
- Introduced
initRulesmethod to allow initializing rules without triggering widget rebuilds. - Added
Can.builderconstructor for dynamically updating UI elements based on permission checks.
Changed #
updateRulesnow automatically rebuilds theCanwidget and any widget usingCaslProvider.of(context).- Updated
README.mdto reflect changes, including:- Explanation of
initRulesand its use case. - Example usage of
Can.builderfor dynamic UI updates. - Clarification on
updateRulesbehavior.
- Explanation of
Fixed #
- Improved documentation consistency and readability.
1.0.1 #
Minor Updates to Documentation
1.0.0 #
Initial Version of the library.