Flutter Download Manager Plugin

A Flutter plugin that allows downloading files directly to the device's Download folder. This plugin is built to manage external storage on Android and follows the latest Google guidelines for Scoped Storage.

Features

  • Download files to the Download folder on Android Using Download Manager.
  • Handle external storage access with the necessary permissions.
  • Supports Android 10+ Scoped Storage for better privacy and security.

Screenshot

Screenshot

Installation

  1. Add the plugin to your pubspec.yaml:

    dependencies:
      eia_flutter_download_manager: 
    
  2. Call the function

    String fileName = 'fileName.pdf';
    var resp = await EiaFlutterDownloadManagerPlugin.startDownload(
        EiaDownloadReqModel(url: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', fileName: fileName));
    if (resp.success == true) {
      ScaffoldMessenger.of(context).showSnackBar(SnackBar(
        content: Text("Downloading $fileName"),
      ));
    } else {
      ScaffoldMessenger.of(context).showSnackBar(SnackBar(
        content: Text(resp.error ?? 'Unknown'),
      ));
    }

Dev contact

https://in.linkedin.com/in/mohit-chouhan-457020226/es?trk=people-guest_people_search-card