ui_guard 1.0.3
ui_guard: ^1.0.3 copied to clipboard
Easily manage role, permission, and condition-based access control in Flutter UIs — entirely in Dart.
import 'package:flutter/material.dart';
import 'pages/home_page.dart';
void main() {
runApp(const RoleBasedApp());
}
class RoleBasedApp extends StatelessWidget {
const RoleBasedApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'UI Guard Example',
theme: ThemeData(primarySwatch: Colors.indigo),
home: const RoleHomePage(),
debugShowCheckedModeBanner: false,
);
}
}