flutter_easy_permission_manager 0.0.2 copy "flutter_easy_permission_manager: ^0.0.2" to clipboard
flutter_easy_permission_manager: ^0.0.2 copied to clipboard

A simple wrapper around permission_handler that makes permission requests easier, with helpful error messages when AndroidManifest.xml or Info.plist entries are missing.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_easy_permission_manager/flutter_easy_permission_manager.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Flutter Easy Permissions Example")),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              final result = await EasyPermissions.request([
                Permission.camera,
                Permission.microphone,
              ]);

              if (result.allGranted) {
                debugPrint("✅ All permissions granted!");
              } else {
                debugPrint("❌ Still missing: ${result.denied}");
              }
            },
            child: const Text("Request Permissions"),
          ),
        ),
      ),
    );
  }
}
0
likes
145
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple wrapper around permission_handler that makes permission requests easier, with helpful error messages when AndroidManifest.xml or Info.plist entries are missing.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, flutter, path, permission_handler, yaml

More

Packages that depend on flutter_easy_permission_manager