arasan01 / drag_and_drop_windows

Drag and Drop, Flutter for windows plugin

Home Page:https://pub.dev/packages/drag_and_drop_windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drag_and_drop_windows

A Flutter plugin that adds drag-and-drop functionality for windows.

Example app running on Microsoft Windows 11 (Debug)

Installation

dependencies:
  drag_and_drop_windows: ^0.0.1

or

$ flutter pub add drag_and_drop_windows

Subscribe to the drop event stream.

import 'package:drag_and_drop_windows/drag_and_drop_windows.dart';
StreamSubscription subscription = dropEventStream.listen((paths) {
  // something to do
});

API

This plugin provides only one event stream.

  • dropEventStream (Stream<List<String>>) Send the item's path, one or more, that was dragged into the app window.

About

Drag and Drop, Flutter for windows plugin

https://pub.dev/packages/drag_and_drop_windows

License:MIT License


Languages

Language:C++ 60.8%Language:CMake 26.3%Language:Dart 9.1%Language:C 3.8%