Since I am not an expert on gesture_detector, I would just follow David's suggestion.
Besides, what we need here is really a small part of it, so I think it would good for keyboard app not to depend on gesture_detector.

If possible, let's not block on this for this leo+ issue. :)