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

PlatformWindows

A Flutter plugin modify windows style to accept Drag&Drop text or files.

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';
      }
    }

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

2
likes
150
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin modify windows style to accept Drag&Drop text or files.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on dragdropwindows