core/services/permission/ — Permission Service
CommunityCentralize runtime permission checks
Software Engineering#mobile#flutter#location#camera#permission#runtime-permissions#permission_handler
AuthorVantoan252003
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Consolidates and standardizes runtime permission checking and requesting in a single service to avoid duplicated permission logic, inconsistent user prompts, and scattered permission handling across a Flutter app.
Core Features & Use Cases
- Unified API: Exposes methods to check and request common mobile permissions such as location, notifications, camera, and photos.
- Consistent status mapping: Converts PermissionStatus values into a PermissionState enum (granted, denied, permanentlyDenied, restricted) so callers can handle UI flows deterministically.
- Practical use cases: Pre-check location permission before invoking LocationService, verify camera permission for avatar upload, and detect permanently denied states to show an "Open Settings" flow.
Quick Start
Call PermissionService.checkLocation() to pre-check location permission and then call PermissionService.requestLocation() if the permission is not granted.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: core/services/permission/ — Permission Service Download link: https://github.com/Vantoan252003/Mozi/archive/main.zip#core-services-permission-permission-service Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.