webfiledrop 1.0.0 copy "webfiledrop: ^1.0.0" to clipboard
webfiledrop: ^1.0.0 copied to clipboard

Platformweb

Easy to use file drop plugin for flutter web.

WebFileDrop #

Easy to use file drop plugin made for Flutter web.

Tested on #

Firefox Google Chrome Safari

Getting Started #

Install the web plugin #

flutter pub add webfiledrop

Import the plugin in your project #

import 'package:webfiledrop/webfiledrop.dart';

Add the drop area widget #

Simple implementation

WebFileDropArea(onFileDrop: (file) {
                 // Handle file (Beware file is a type of HTML File not dart:io file)
                })

Get the file as Uint8List

WebFileDropArea(onFileDrop: (file) async {
                  final selectedFile = await WebFileDrop.htmlFileToMemoryFile(file);
                  // Handle Uint8List representation of File
                })
0
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Easy to use file drop plugin for flutter web.

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, universal_html

More

Packages that depend on webfiledrop

Packages that implement webfiledrop