flutter_gate_core 0.1.1 copy "flutter_gate_core: ^0.1.1" to clipboard
flutter_gate_core: ^0.1.1 copied to clipboard

Core policy and feature flag system for Flutter. Pure Dart, no Flutter SDK required.

flutter_gate_core #

Core policy and feature flag engine for Flutter. Pure Dart — no Flutter SDK required.

Part of the flutter_gate monorepo.

Installation #

dependencies:
  flutter_gate_core: ^0.1.1

For widgets and BuildContext extensions, use flutter_gate instead — it re-exports this package.

Usage #

import 'package:flutter_gate_core/flutter_gate_core.dart';

void main() {
  gate.policy<Post>(() => PostPolicy());
  gate.define(const DarkModeFeature());

  if (gate.allows('update', user: 'alice', model: Post('alice'))) {
    // authorized
  }
}

API #

  • Gate / gate — singleton engine
  • Policy — authorization rules per model type
  • Feature / AsyncFeature — feature flag definitions
  • GateContext — scoped user context
  • Hooks, annotations, and testing utilities

Documentation #

Full guides: flutter_gate docs

0
likes
140
points
24
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Core policy and feature flag system for Flutter. Pure Dart, no Flutter SDK required.

Repository (GitHub)
View/report issues

Topics

#authorization #feature-flags #policy #security

License

MIT (license)

Dependencies

meta

More

Packages that depend on flutter_gate_core