drop_zone 1.0.2 drop_zone: ^1.0.2 copied to clipboard
A simple way to bring drag’n’drop to flutter web. drop_zone is commonly used for file choosing by dragging and dropping a file(s) onto a designated widget. The user can then use the dropped html file(s).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add drop_zone
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
drop_zone: ^1.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:drop_zone/drop_zone.dart';