artur-ios-dev / flutter_control_pad

A control pad with a virtual joystick and buttons.
https://pub.dev/packages/control_pad
GNU General Public License v3.0
40 stars 24 forks source link

Works on stable channel #11

Closed gitboss closed 5 years ago

gitboss commented 5 years ago

The code works with stable channel as well by getting the local position using the following code :

RenderBox getBox = context.findRenderObject();
getBox.globalToLocal(details.globalPosition))

Can you please confirm if the offsets received with the above code are correct?

artur-ios-dev commented 5 years ago

Thank you for your feedback. I guess you are right, although there should be a new stable version next week (8. July) so I think it is best to just wait a few more days and all will be good for everyone ^^

gitboss commented 5 years ago

I forgot to mention, please use the debouncer class instead of checking for interval by datetime. Currently the IDE shows a warning because the datetime is not immutable. If you like I can provide the code of how is can be implemented..

artur-ios-dev commented 5 years ago

@gitboss Sure, go ahead, pull requests are welcome as well.