Open roystontay opened 2 weeks ago
Hi @roystontay! Can you please try running FF app on a local device and verify if the performance is better?
do you mean running
"flutter run -d
to have the code compiled and run on my physical iphone?
if so, yes I've just verified that using this same project. the lag is still there. however, i'm not able to record my screen with the touch gesture showing when i started tapping vs when the app starts detecting it (similar to the video i uploaded before). there doesn't seem to be a way to record that on iphones.
Hi, have you been able to replicate this? I've tried building the app using CLI and using flutter desktop app. The lag is experienced in both.
When testing on flutter web, there's no perceivable lag. i.e. the line starts drawing where my mouse cursor first starts clicking and moving.
Please let me know if
As mentioned, this is a pretty critical part to my app. I'd have to look for alternatives otherwise, thanks!
Can we access your project?
Current Behavior
As you can see from the attached video, the onPanStart and onPanUpdate events only start after the finger has started moving over ~20px in the simulator. That's when the blue line starts being drawn.
Expected Behavior
when ran in flutter (without flutterflow), this gesture event would start firing almost immediately. i.e. the blue line tracing the finger movements has no lag.
I've created a project in my account specifically to recreate this issue report called "for issue reporting". Flutterflow team may access this.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT4WksmBwItNrsNK0KrtbcBvmicXQkB/aIJIjMN9dwgdIYjqP6YPXfikSEpWZ9+kTHxcL2Gjqz4K7t7Hv/OTA+UrMk+aQIBlz5dudA3JTmembJiuCsyCR0ZBHtFJJVPG5MGRvyVBPuleV3g62WC6Pt6/dHffJL7pNmsZL/mIJof4+wqrQ0SLb3kNh1JWeC/v
Visual documentation
https://github.com/user-attachments/assets/3c23f804-4be4-4c9e-8373-f30eea5ed0e0
Environment
Additional Information
I'm using a library (https://pub.dev/packages/stroke_order_animator) where the onPanUpdate mechanism is being used. When i run the provided example directly in flutter, it works perfectly (i.e. no lag). When I port the example into flutterflow as a custom widget, this lag is encountered. Through debugging, I think the issue can be isolated to how slow the onPanUpdate event starts firing.
This issue is critical to my use case that requires tracing a finger gesture, which I imagine would be required for many drawing apps?