IosManager class final

Manages iOS-specific native configurations for Flutter projects.

This class provides methods to:

  • Add key-value pairs to Info.plist
  • Add iOS permission usage descriptions
  • Add URL schemes for deep linking

Usage

final manager = IosManager('/path/to/flutter/project');

// Add a permission description
final result = manager.addPlistKey(
  'NSCameraUsageDescription',
  'We need camera access to take photos',
);

// Add a URL scheme
final urlResult = manager.addUrlScheme('myapp');

File Location

The manager modifies the Info.plist file at:

  • ios/Runner/Info.plist

Constructors

IosManager(String projectRoot)
Creates a new IosManager for the Flutter project at projectRoot.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isIosProjectPresent bool
Returns true if the ios/ directory exists in the project.
no setter
projectRoot String
The root directory of the Flutter project.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPermissionDescription(String permissionKey, String description) OperationResult
Adds a permission usage description to Info.plist.
addPlistKey(String key, String value, {PlistValueType valueType = PlistValueType.string}) OperationResult
Adds a key-value pair to the iOS Info.plist file.
addUrlScheme(String scheme) OperationResult
Adds a URL scheme to the Info.plist for deep linking.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited