path_provider_windows
2.3.0, released 2 years ago by flutter.dev
Windows implementation of the path_provider plugin
What it does
Provides a Windows platform implementation for retrieving commonly used locations on the filesystem, such as temporary and documents directories. It is an endorsed federated plugin that works transparently through the main path_provider package.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are developing a Flutter application for Windows and need access to standard filesystem directories
- You are using the path_provider package in a multiplatform app that targets Windows
Skip it when
- Your application does not target the Windows platform
- You need custom file picking or saving dialogs instead of standard application directories
Strengths
- Automatically included when using the main path_provider package due to endorsement
- Uses direct FFI usage for Windows integration
Weaknesses
- Limited specifically to the Windows platform implementation
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
This package is endorsed, meaning it will be automatically included when using path_provider normally. You only need to add it to pubspec.yaml if you import it directly.
import 'package:path_provider/path_provider.dart';
Future<void> _testPath() async {
final directory = await getApplicationDocumentsPath();
}Alternatives
Packages that do the same job and could replace path_provider_windows.
- file_picker
Use the native file explorer to pick single or multiple files, directories, and save files.
93Compare - file_saver
Save files from bytes, paths, streams, and URLs across Android, iOS, Web, Windows, macOS, and Linux.
87Compare - alh_pdf_view
Show PDF files or bytes as a Flutter widget on Android and iOS.
64Compare - downloadsfolder
Retrieve download folder paths and copy files into downloads on mobile and desktop.
61Compare
Works with
Packages commonly used together with path_provider_windows: ones it builds on, ones built on it, and its own family.
- ffipath_provider_windows depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- path_provider_androidSame familyAndroid implementation of the path_provider plugin for finding commonly used locations.
- path_provider_foundationSame familyiOS/macOS implementation of path_provider using direct FFI calls
- path_parsingSame familyPure Dart library for parsing SVG path strings and generating Dart path code.
- path_providerBuilt on path_provider_windowsProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- shared_preferences_windowsBuilt on path_provider_windowsWindows platform implementation for shared_preferences
- posthog_flutterBuilt on path_provider_windowsFlutter client for PostHog analytics, feature flags, and session replay
- file_saver_ffiBuilt on path_provider_windowsSave any file type to device storage, gallery, or a user‑chosen folder with progress and conflict handling.