external_path
3.0.0, released 3 months ago by an unverified publisher
Flutter plugin to retrieve internal, external, and public storage directory paths on Android and iOS.
What it does
Provides async functions to get lists of external storage directories and specific public directories such as Downloads, Music, etc. Works on both Android and iOS, with iOS support added in v2.1.0.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to access device storage paths for file operations
- You need to support multiple external storage locations (e.g., SD cards)
- You require platform‑specific public directories like Downloads or Pictures
Skip it when
- You only need basic file I/O and can use path_provider for simple paths
- You are building a web or desktop app where storage paths are irrelevant
Strengths
- Supports a wide range of public directories on Android
- Adds iOS SPM and UIScene lifecycle support
- Handles multiple external storage volumes
- No extra permissions required for basic path retrieval
Weaknesses
- Does not provide file read/write utilities
- Limited to path retrieval only
- No support for web or desktop platforms
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency in pubspec.yaml, import package, call async methods; no special permissions needed.
import 'package:external_path/external_path.dart';
Future<void> getPaths() async {
var dirs = await ExternalPath.getExternalStorageDirectories();
print(dirs);
var download = await ExternalPath.getExternalStoragePublicDirectory(ExternalPath.DIRECTORY_DOWNLOAD);
print(download);
}Alternatives
Packages that do the same job and could replace external_path.
- path_provider
Provides similar directory retrieval but with fewer directory options and broader platform support (including web/desktop).
93Compare
Works with
Packages commonly used together with external_path: ones it builds on, ones built on it, and its own family.