搜索插件、代码仓与 APP 分类

插件详情v4.2.1

flutter_dropzone

一个仅限 Web 的拖放 Flutter 插件。

Web
近 30 天下载
21.5万
喜欢数
219
Pub 分数
140

安装插件

flutter pub add flutter_dropzone

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个专为Web应用设计的Flutter插件,支持拖放文件上传。它提供了一个简单且可自定义的界面,让用户可以直接将文件拖放到指定区域,从而改善Web平台上的文件上传体验。专为Web打造,与Flutter UI框架无缝集成,并支持常见的文件操作,如选择和预览。该插件轻量级,注重易用性,无需复杂设置。

适合场景

  • 基于Web的文件上传
  • 拖放表单输入
  • 文件导入接口
  • 在线文档提交
  • 交互式媒体上传区域

主要特点

  • 仅限网页支持
  • 简单的拖放界面
  • 可自定义的拖放区域样式
  • 文件类型过滤
  • 基本文件预览功能

适合对象

  • Web 开发人员构建文件密集型应用程序
  • UI设计师需要直观的文件输入
  • 需要轻松文件摄入的应用程序
  • 原型设计交互式文件上传流程
  • 面向浏览器环境的项目

使用建议

  • 不适用于移动或桌面平台
  • 仅限网页浏览器
  • 需要自定义处理文件处理
  • 除了类型之外,没有内置的文件验证
  • 依赖于浏览器特定的拖放API

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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

所属分类

依赖

依赖清单 3 项

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

源码仓库

使用此插件的项目

暂无相关数据。