0 purchases
webfiledrop
WebFileDrop #
Easy to use file drop plugin made for Flutter web.
Tested on #
Getting Started #
Install the web plugin #
flutter pub add webfiledrop
copied to clipboard
Import the plugin in your project #
import 'package:webfiledrop/webfiledrop.dart';
copied to clipboard
Add the drop area widget #
Simple implementation
WebFileDropArea(onFileDrop: (file) {
// Handle file (Beware file is a type of HTML File not dart:io file)
})
copied to clipboard
Get the file as Uint8List
WebFileDropArea(onFileDrop: (file) async {
final selectedFile = await WebFileDrop.htmlFileToMemoryFile(file);
// Handle Uint8List representation of File
})
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.