FLUTTER ECOSYSTEM

nplaceit/downloads_path_provider

获取下载目录的 Flutter 插件

downloads_path_provider 项目封面
Stars
11
Forks
77
最近推送(UTC)
2019年9月18日
项目状态
已归档
nPlaceIT - Tecnologia Inteligente Ltda ME GitHub avatar
语言DartRubyObjective-CJava

此仓库发布的插件

使用的依赖

依赖清单 1 项
  • flutter{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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;