Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package designed to retrieve standardized directory paths on iOS and macOS devices, enabling consistent file access and management across both platforms. It simplifies handling of external storage locations such as documents, downloads, and caches by providing reliable path resolution. The package is particularly useful for apps requiring cross-platform file system interactions without platform-specific code. Built with simplicity and reliability in mind, it ensures developers can efficiently manage file operations in a unified way.
Use cases
Accessing user documents directory
Managing app cache files
Handling downloads folder
Cross-platform file path resolution
Integrating with external storage
Key features
Platform-agnostic path retrieval
Support for iOS and macOS
Simple API for common directories
Reliable path resolution
No additional permissions required
Suitable for
File-heavy applications
Cross-platform Flutter apps
Apps needing external storage access
Developers avoiding native code
Projects requiring consistent file paths
Considerations
Limited to iOS and macOS
Does not handle file creation or deletion
Requires understanding of platform-specific directory semantics
Not suitable for Android or Windows
Depends on correct usage of path constants
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
external_path_ios_mac
A Flutter package for retrieving directory paths on iOS and macOS devices, ensuring file access and management across platforms.
Add the following keys to your Info.plist if your app accesses photos or camera:
<key>NSPhotoLibraryUsageDescription</key><string>We need access to your photo library.</string><key>NSCameraUsageDescription</key><string>We need access to your camera.</string>
macOS
Add the following entitlement to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements:
This package supports Swift Package Manager (SPM) for both iOS and macOS, compatible with Flutter 3.44+. CocoaPods is also supported for backwards compatibility.
Additional Information
For issues, questions, or suggestions, contact us at [swan.dev1993@gmail.com](mailto:swan.dev1993@gmail.com) or visit our GitHub repository.