lecle_downloads_path_provider 0.0.1 copy "lecle_downloads_path_provider: ^0.0.1" to clipboard
lecle_downloads_path_provider: ^0.0.1 copied to clipboard

outdated

A new Flutter project.

lecle_downloads_path_provider #

A Flutter project to get the downloads folder path from Android and iOS device.

How to use #

  • Simply import the package from Gitlab with the syntax below under dependencies in pubspec.yaml file and run flutter command flutter pub get in terminal

    dependencies:
    flutter:
    sdk:flutter

    downloads:
    git:
    url: https://git.baikal.io/mobile/lecle-flutter-modules/mobile-flutter-module/lecle_downloads_path_provider
    ref: master

  • Add <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> to your AndroidManifest.xml

Example #

import 'package:downloads/downloads_path.dart';

Directory? downloadsDirectory = await DownloadsPath.downloadsDirectory;
String? downloadsDirectoryPath = (await DownloadsPath.downloadsDirectory)?.path;

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.