# dropfiles_window **Repository Path**: smebclub/dropfiles_window ## Basic Information - **Project Name**: dropfiles_window - **Description**: No description available - **Primary Language**: Dart - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-08 - **Last Updated**: 2023-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dropfiles_window this plugin modify windows style to accep Drag&Drop a file and wheh Drop a file from this other window. this plugin does call a dart callback function. flutter gets the file name from ths callback function. ![Alt Text](https://github.com/gregoryyoon/dropfiles_window/blob/master/howto.gif) ## Supported Platforms - [ ] macOS - [x] Windows - [ ] Linux ## Usage ```dart import 'package:dropfiles_window/dropfiles_window.dart'; . . . if (Platform.isWindows == true) { // Platform messages may fail, so we use a try/catch PlatformException. try { DropfilesWindow.modifyWindowAcceptFiles((String strName) { // print("fileName=$strName"); setState(() { _dropFileName = strName; }); }); } on PlatformException { _dropFileName = 'Failed to modifyDropFilesWindow.'; } } ``` refer /example/lib/main.dart for all source code