Search packages, repositories and app categories

Package detailsv4.2.1

flutter_dropzone

A drag-and-drop Flutter plugin (Web only).

Web
30-day downloads
215K
Likes
219
Pub points
140

Install package

flutter pub add flutter_dropzone

Package Overview

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

A Flutter plugin designed for web applications that enables drag-and-drop file uploads. It provides a simple, customizable interface for users to drop files directly onto a designated area, improving the file upload experience on web platforms. Built specifically for web, it integrates seamlessly with Flutter's UI framework and supports common file operations like selection and preview. The plugin is lightweight and focuses on usability without requiring complex setup.

Use cases

  • Web-based file uploads
  • Drag-and-drop form inputs
  • File import interfaces
  • Online document submission
  • Interactive media upload zones

Key features

  • Web-only support
  • Simple drag-and-drop interface
  • Customizable drop zone styling
  • File type filtering
  • Basic file preview capabilities

Suitable for

  • Web developers building file-heavy apps
  • UI designers needing intuitive file input
  • Applications requiring easy file ingestion
  • Prototyping interactive file upload flows
  • Projects targeting browser-based environments

Considerations

  • Not available for mobile or desktop platforms
  • Limited to web browsers
  • Requires custom handling for file processing
  • No built-in file validation beyond types
  • Depends on browser-specific drag-and-drop APIs

Original README

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

pub package

See the README files of the individual subprojects:

Breaking changes

4.2.0 had to introduce another breaking change, sorry. While 4.1.0 solved the problem for web users, it created a regression for some other people who author multiplatorm apps where not all variants are web-based. Instead of returning a web.File directly, the onDrop variants now return a DropzoneFileInterface. You can go on accessing its properties as before, so you might not even notice the difference.

4.1.0 deprecates onDrop and all other functions using dynamic type because the newer Flutter JS support enforces stricter type checking. onDrop will be removed in a coming version. Use onDropFile and onDropString instead.

4.0.x is compatible with Flutter 3.13 (stable) and later. If you're not yet ready to upgrade from a previous version of Flutter, stay with the latest 3.0.x version of flutter_dropzone. See the README of the web implementation for details.

3.0.x is compatible with Flutter 2.5 (stable) and later. If you're not yet ready to upgrade from a previous version of Flutter, stay with the latest 2.0.x version of flutter_dropzone. See the README of the web implementation for details.

Support

If you like this package, please consider supporting it.

Buy Me A Book

Categories

Dependencies

Dependency list 3 items

  • flutter_dropzone_platform_interface^2.2.0
  • flutter_dropzone_web^4.2.0
  • web>=0.5.1 <2.0.0

Source repository

Projects using this package

No data available yet.