Code Monkey home page Code Monkey logo

drag_and_drop_windows's Introduction

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.

drag_and_drop_windows's People

Contributors

arasan01 avatar jon-salmon avatar moko256 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

drag_and_drop_windows's Issues

I don't know how to write test code for EventSink

I can't figure out how to get windows to notify me of Drag and Drop and read EventSink from dart's test code.
I don't have a policy on creating a test for this code.
Currently, the only way to confirm that it works is to check it, for example.
Can someone please help me?

Web support

is there another package for web support?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.