easy_permission_handler 1.0.0 copy "easy_permission_handler: ^1.0.0" to clipboard
easy_permission_handler: ^1.0.0 copied to clipboard

Permission handler now got very easy to integrate

Use this package to simplify the permission handling in your project

You can ask single permission like this :

MyPermissionHandler.askPermission(Permission.camera).then((value) async { if (value.isGranted) { //Whatever you want to do when permission is granted })); } else { MyPermissionHandler.showPermissionDialog(context, value.isPermanentlyDenied, Permission.camera, "Camera"); } });

And for asking the multiple permissions :

MyPermissionHandler.askPermissions([Permission.camera]).then((value) async { if (value) { //Whatever you want to do when permission is granted } else { MyPermissionHandler.showPermissionDialog(context, true, Permission.camera, AppStrings.bluetoothPermission); } });

Note : Do not forget to define permission in AndroidManifest.xml file for Android and info.plist file for iOS.

3
likes
110
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Permission handler now got very easy to integrate

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter, permission_handler, sizer

More

Packages that depend on easy_permission_handler