Divyanshu Bhargava
Oct 16 · 1 min read

You are giving Offset as (1.0, 0.0) which means that your widget will move to (widget width * x) = (widget width * 1.0) = (50.0 * 1.0) = 50.

Change your offset to

end: Offset((MediaQuery.of(context).size.width - 50.0) / 50.0, 0.0)

Hope this will help. Let me know if you have any other doubt.

    Divyanshu Bhargava

    Written by

    Android & Flutter developer | Open source enthusiast | Blogger | Remote Work | Exploring new Tech. 🇮🇳