Skip to content

The SimpleDrag combines the functionalities of both Draggable and DragTarget widgets, allowing it to be draggable and a drag target at the same time. It supports dynamic data types using generics, making it adaptable to different input types.

License

Notifications You must be signed in to change notification settings

maple52046/simple_drag

Repository files navigation

SimpleDrag

SimpleDrag is an open-source Flutter package that provides a versatile and customizable widget for implementing drag-and-drop functionality in your Flutter applications. With this widget, you can easily enable drag and drop interactions between various widgets, allowing users to intuitively rearrange and exchange data within your app.

Features

  1. Drag and Drop Support: SimpleDrag offers seamless support for both dragging and dropping widgets within the app interface. It allows you to specify the draggable widget and the drag target widget, enabling smooth data exchanges between them.

  2. Customizable Behavior: The package provides extensive customization options, allowing you to control various aspects of the drag-and-drop behavior. You can enable or disable dragging functionality based on your requirements, customize the appearance of draggable and drag target widgets, and define actions for different drag events.

  3. Dynamic Data Type: SimpleDrag supports dynamic data types, allowing you to handle different types of data during drag and drop operations. You can easily adapt the widget to accommodate various data structures or object types, making it highly flexible and adaptable.

  4. Open-source and Extendable: SimpleDrag is an open-source project, encouraging community contributions and improvements. You can customize and extend the widget to fit your specific application needs or contribute back to the community by adding new features or addressing issues.

Getting started

To start using SimpleDrag in your Flutter project, follow these steps:

  1. Add the SimpleDrag package as a dependency in your pubspec.yaml file.
  2. Import the package into your Dart code using import 'package:simple_drag/simple_drag.dart';.
  3. Create an instance of SimpleDrag, specifying the draggable and drag target widgets, and any desired customization options.
  4. Use the SimpleDrag instance in your app's UI to enable drag-and-drop functionality.

For more details, refer to the documentation and examples provided with the package.

Contributing

Contributions to SimpleDrag are welcome! If you encounter any issues or have ideas for improvements, please submit them through the project's GitHub repository. Feel free to contribute code enhancements, bug fixes, or new features by creating pull requests.

About

The SimpleDrag combines the functionalities of both Draggable and DragTarget widgets, allowing it to be draggable and a drag target at the same time. It supports dynamic data types using generics, making it adaptable to different input types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published