owlnext_dropzone 0.1.1
owlnext_dropzone: ^0.1.1 copied to clipboard
Olwnext dropzone widget
0.1.1 #
- better image extension parsing for document icon resolving now PNG and uppercase format are recognized
0.1.0 #
-
removed dependency to :
- universal_html
- url_launcher
- nirrti
- owlnext_utils
- dotted_border
-
fix paste on IOS, Windows
-
fix drag & drop on IOS, windows
if you need to use [FileUtils].downloadFile in web context, you need to setup an conditionnal injection for web execution in your app, see README for more informations. a shortcut here
if you want to use FileUtils.downloadFile() on web context, you will need to inject a specific behavior from your app. create a file in your app, loaded only in library.html context (web) and call
import 'package:universal_html/html.dart';
DownloadFileWebBypass().setDownloadFileWebFunction(
try {
final base64 = base64Encode(bytes);
// Create the link with the file
final anchor = AnchorElement(
href: 'data:application/octet-stream;base64,$base64')
..target = 'blank'
..download = fileName;
// trigger download
document.body?.append(anchor);
anchor.click();
anchor.remove();
return null;
} catch (e) {
throw(FileError.genericError);
}
)
0.0.1 #
- Moving all file related widgets