casl_dart 1.1.1 copy "casl_dart: ^1.1.1" to clipboard
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 abilityBuilder in Can.builder:
    • abilityBuilder: (context, hasPermission) { ... }

1.1.0 #

Added #

  • Introduced initRules method to allow initializing rules without triggering widget rebuilds.
  • Added Can.builder constructor for dynamically updating UI elements based on permission checks.

Changed #

  • updateRules now automatically rebuilds the Can widget and any widget using CaslProvider.of(context).
  • Updated README.md to reflect changes, including:
    • Explanation of initRules and its use case.
    • Example usage of Can.builder for dynamic UI updates.
    • Clarification on updateRules behavior.

Fixed #

  • Improved documentation consistency and readability.

1.0.1 #

Minor Updates to Documentation

1.0.0 #

Initial Version of the library.

4
likes
160
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart implementation of CASL.js for managing access control in Flutter apps with dynamic permission handling.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on casl_dart