permission_config
एक फ्लटर CLI प्लगइन जो स्वचालित रूप से एंड्रॉइड/आईओएस की अनुमतियाँ जोड़ता है और अनुमति हैंडलर तर्क बनाता है।
jassimpv/permissions_config open-source repository details.
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter CLI plugin that automatically adds Android/iOS permissions (Camera, Microphone, Location) to your Flutter project and generates a ready-to-use runtime permission handler file.
Say goodbye to manually editing AndroidManifest.xml and Info.plist — this tool does it all for you!
permission_handler.dart file under lib/Utils/permission_handler dependency automatically in your pubspec.yaml.bak) before modifying platform configslogger for clean, informative CLI outputActivate the plugin globally with Dart pub:
dart pub global activate permission_config
Run this command inside your Flutter project root:
permission_config <permission> [optional-ios-message]
| Permission | Aliases | Description |
|---|---|---|
camera |
- | Access to the device camera |
microphone |
mic |
Access to the microphone |
location |
- | Access to device location services (fine & coarse) |
storage |
- | Read/write external storage (Android only) |
bluetooth |
- | Access Bluetooth and BLE devices |
sensors |
- | Access body sensors and motion data |
contacts |
- | Access the user's contact list |
calendar |
- | Access calendar events and reminders |
photos |
- | Access the photo library (iOS only) |
notifications |
- | Access to send and display notifications (iOS only) |
speech |
- | Use speech recognition services (iOS only) |
all |
- | Adds all supported permissions above automatically |
permission_config all
permission_config camera
permission_config mic "This app needs mic access for voice chat."
permission_config location
Before applying changes, backups are created:
AndroidManifest.xml.bakInfo.plist.bakFound a bug or want to add more permissions?
Feel free to open an issue or submit a pull request! Your contributions are welcome. 💙
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗