How do I assign it to a Widget (Positioned) in its right property so that it moves next to the finger using .globalPosition.dx?

This Question is posted by seven.srikanth at 15-04-2019 04:20:23

HI, I am using GestureDetector and in its function
onHorizontalDragUpdate: (_) {
var x = _.globalPosition.dx;
}
That data will be updated as I drag my finger horizontally on the screen.
question is:
How do I assign it to a Widget (Positioned) in its right property so that it moves next to the finger using .globalPosition.dx?

Any suggestion of conversion since the data in .globalPosition.dx is very high and Widget (Positioned) is lost in the screen if I send the data directly?

Tags:



0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.
Are you struggling with Slow emulator or having a low Spec machine? Try GenyMotion Emulator with VSCode for Flutter Mobile Apps Development

Recent Articles


Error: JAVA_HOME is set to invalid directory.Please set the JAVA_HOME variable in your environment to match the location of Java environment

Posted by deebidove1 on 13 Jul 2020 Errors


Exception:Gradle task assembleDebug failed ith exitcode 1 -Flutter

Posted by deebidove1 on 13 Jul 2020 Errors


Are you struggling with Slow emulator or having a low Spec machine? Try GenyMotion Emulator with VSCode for Flutter Mobile Apps Development

How to show an empty widget in flutter?

Posted by seven.srikanth on 28 May 2020 Article


How to disable swipe or scroll in Flutter Scrolling widgets?

Posted by seven.srikanth on 25 May 2020 Article




© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com