drag_and_drop_flutter

Creator: coderz1093

Last updated:

0 purchases

drag_and_drop_flutter Image
drag_and_drop_flutter Images

Languages

Categories

Add to Cart

Description:

drag and drop flutter

drag_and_drop_flutter #

This plugin implements drag and drop functionality, along with some widgets to easily use drag and drop.
Use DragDropArea to receive callbacks when data is dragged over or dropped on the widget, or to
set data when users drag from the widget.
This is a federated plugin. It currently only has an endorsed implementation for web.
For convenience, this plugin will work for any platform, but on platforms other than web it will do nothing.
Usage #
To use this plugin, add drag_and_drop_flutter as a dependency in your pubspec.yaml file.
Example #
import 'package:flutter/material.dart';
import 'package:drag_and_drop_flutter/drag_and_drop_flutter.dart';

void main() {
runApp(MaterialApp(
home: DragDropArea(
onDrop: (data) {
final text = data['text/plain']?.toString();
if (text != null) {
debugPrint('Dropped text: $text');
}
},
child: const Center(
child: Text('Drop stuff here'),
),
),
));
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.