flutter_policy_engine 1.0.1
flutter_policy_engine: ^1.0.1 copied to clipboard
A lightweight, extensible policy engine for Flutter enabling Attribute-Based Access Control (ABAC) and Role-Based Access Control (RBAC) with declarative rule definitions.
import 'package:flutter/material.dart';
import 'package:flutter_policy_engine_example/policy_engine_demo.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Policy Engine Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const PolicyEngineDemo(),
);
}
}