adar2378 / draggable_widget

A flutter package which will help you to create a draggable widget that can be dragged around the screen.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implemented some new features

dreampowder opened this issue · comments

Hello, first of all thanks for this library.

I've implemented some new features in my own fork, and couldn't make a successful pull request to your repo, so please feel free to implement these features to your own library too.

1- Implemented "center" position: it is not a snapping location but still usefull in some cases.

2- Implemented a touch delay feature: It is required when we have a button at the edge of the draggable widget (i.e a video player), because when we click on the button, onPointerUp event triggers and widget moves to the relevant corner in some cases.

you can check from https://github.com/dreampowder/draggable_widget

draggable_widget.dat / anchor_docket.dart

thanks again!.

commented

Hi, thanks for your contribution. Could you create a pull request?

sure, but i accidentally added example/ios files in to the project