0 purchases
dragdropwindows
dragdropwindows #
This plugin modify windows style to accept Drag&Drop text or files and when Drop text or files from other window, this plugin does call a dart callback function.
flutter gets the text or the file name from the callback function.
Supported Platforms #
❌ macOS
✅ Windows
❌ Linux
Characteristic #
Support drag and drop of multiple files
Support drag and drop of text
Support Chinese environment
Usage #
import 'package:dragdropwindows/dragdropwindows.dart';
.
.
.
if (Platform.isWindows) {
try {
DropfilesWindow.start((DropType type, List<String> results) {
print("type=$type results=$results");
setState(() {
_dropInfo = '${type == DropType.text ? 'Drop text' : 'Drop files'} : $results';
});
});
} on PlatformException {
_dropInfo = 'Error to drop';
}
}
copied to clipboard
refer /example/lib/main.dart for all source code
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.