Search packages, repositories and app categories

Package detailsv0.1.0

downloads_path_provider

Flutter plugin to get the download directory for Android.

30-day downloads
494
Likes
68
Pub points
40

Install package

flutter pub add downloads_path_provider

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that provides access to the downloads directory on Android devices. It simplifies file management by returning the correct path to the user's downloads folder, enabling apps to save or retrieve files in a standardized location. Designed specifically for Android, it ensures compatibility with the platform's storage conventions and permissions model. The plugin is lightweight and integrates seamlessly into existing Flutter projects.

Use cases

  • Saving downloaded files to the device's downloads folder
  • Accessing user-downloaded content programmatically
  • Integrating file-saving features in media or document apps
  • Ensuring consistent file paths across Android versions

Key features

  • Returns the Android downloads directory path
  • Simple API with minimal setup
  • Platform-specific implementation for Android
  • Works with Android's scoped storage

Suitable for

  • Android-only file management
  • Apps requiring downloads folder access
  • Developers building file-sharing or media apps

Considerations

  • Limited to Android (no iOS support)
  • Requires proper Android permissions
  • Does not handle file operations—only path retrieval

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

downloads_path_provider

Flutter plugin to get the downloads directory.

This plugin has lots of inconsistencies and should no longer be used. Feel free to fork and tweak it.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

Usage

  • Add downloads_path_provider as a dependency in your pubspec.yaml file.
  • Add <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> to your AndroidManifest.xml

Example

import 'package:downloads_path_provider/downloads_path_provider.dart';  

Future<Directory> downloadsDirectory = DownloadsPathProvider.downloadsDirectory;

Categories

Source repository

Projects using this package