Gesture
📄️ Implementation
With the "animation" section above, we are already able to show some animations like enter-page transition even when the frame is very janky. However, what if the user interacts with the UI, such as dragging the ListView? Without the implementation in this section, the PointerMoveEvent will not be handled at all during a janky frame, because event handling happens between frames, so the preempt will render identical content in each scene. Thus, the user still feels the UI is freezed during a janky frame, even though it is 60FPS. This section is to solve the problem.
📄️ Deliberate delay
We need to deliberately delay about one frame for the pointer events, in order to achieve the same behavior as original Flutter.