dragdropwindows 0.0.1 copy "dragdropwindows: ^0.0.1" to clipboard
dragdropwindows: ^0.0.1 copied to clipboard

outdated

A new Flutter project.

dragdropwindows #

This plugin modify windows style to accep 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

Usage #

import 'package:dragdropwindows/dragdropwindows.dart';
.
.
.
if (Platform.isWindows == true) {
      // Platform messages may fail, so we use a try/catch PlatformException.
      try {
        DropfilesWindow.start((DropType type, List<String> results) {
          print("type=$type results=$results");
          setState(() {
            _dropInfo = '${type == DropType.text ? 'Drop text' : 'Drop files'} : ${results.toString()}';
          });
        });
      } on PlatformException {
        _dropInfo = 'Error to drop';
      }
    }

refer /example/lib/main.dart for all source code

2
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dragdropwindows

Packages that implement dragdropwindows