Search packages, repositories and app categories

Package detailsv0.0.14

permission_config

A Flutter CLI plugin that auto-adds Android/iOS permissions and generates permission handler logic.

AndroidiOS
30-day downloads
30
Likes
37
Pub points
150

Install package

flutter pub add permission_config

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter CLI plugin that automates the addition of Android and iOS permissions and generates corresponding permission handler code. It streamlines app development by reducing manual configuration, ensuring proper permission declarations in platform-specific manifest files and generating boilerplate code for requesting and checking permissions. Ideal for developers seeking to minimize setup time and avoid common permission-related errors during app deployment.

Use cases

  • Automating permission setup for new Flutter projects
  • Reducing manual configuration in AndroidManifest.xml and Info.plist
  • Generating permission request logic for runtime checks
  • Accelerating app development with consistent permission handling
  • Ensuring compliance with platform-specific permission requirements

Key features

  • CLI-driven permission configuration
  • Auto-generation of permission handler code
  • Support for both Android and iOS platforms
  • Integration with existing Flutter projects
  • Minimal manual intervention required

Suitable for

  • Flutter beginners learning permission management
  • Teams aiming to standardize permission setup across projects
  • Developers building apps requiring multiple permissions
  • Projects with strict compliance needs for mobile permissions
  • Rapid prototyping with secure permission handling

Considerations

  • Requires familiarity with Flutter CLI
  • May need customization after auto-generation
  • Not a runtime permission manager itself
  • Depends on external permission_handler package
  • Best used early in project development

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

🚀 Permission Config

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!


✨ Features

  • ✅ ✅ Supports permissions for Camera, Microphone, Location, Storage, Bluetooth, Sensors, Contacts, Calendar, Photos, Notifications, and Speech Recognition
  • ⚙️ Automatically injects required Android and iOS permission entries
  • 📁 Generates a pre-written permission_handler.dart file under lib/Utils/
  • 📦 Adds permission_handler dependency automatically in your pubspec.yaml
  • 💾 Creates backup files (.bak) before modifying platform configs
  • 📝 Uses logger for clean, informative CLI output

📦 Installation

Activate the plugin globally with Dart pub:

dart pub global activate permission_config

🔧 Usage

Run this command inside your Flutter project root:

permission_config <permission> [optional-ios-message]
Supported permissions:
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
Examples:
permission_config all
permission_config camera
permission_config mic "This app needs mic access for voice chat."
permission_config location

💾 Backup Files

Before applying changes, backups are created:

  • AndroidManifest.xml.bak
  • Info.plist.bak

🙌 Contribution

Found a bug or want to add more permissions?
Feel free to open an issue or submit a pull request! Your contributions are welcome. 💙


👤 Contributors

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.