Skip to content
pubscout

path_provider_windows

2.3.0, released 2 years ago by flutter.dev

Windows implementation of the path_provider plugin

WASM-readyQuiet but busy
$ flutter pub add path_provider_windows
Source repository

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.

  • file_saver

    Save files from bytes, paths, streams, and URLs across Android, iOS, Web, Windows, macOS, and Linux.

  • alh_pdf_view

    Show PDF files or bytes as a Flutter widget on Android and iOS.

  • downloadsfolder

    Retrieve download folder paths and copy files into downloads on mobile and desktop.

Works with

Packages commonly used together with path_provider_windows: ones it builds on, ones built on it, and its own family.