Press ESC to close

Flutter App : A flutter deskstop package that allows you to drag the native file into app support

FileDragAndDrop

A flutter deskstop package that allows you to drag the native file into app support.

Platform Support

Now only support on macOS, if any one can implements other platform method. Please pull request to contributors

Linux macOS Windows
✔️

Example

See Example Code

Firt Step: ensureInitialized

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await dragAndDropChannel.initializedMainView();
  runApp(MyApp());
}

Second Step: addListener DragContainerListener

Getting Started

This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.

For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

GitHub

View Github

Footer Example