搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。