notePointerInteraction method
void
notePointerInteraction()
Call on pointer down/tap so rings hide until keyboard nav resumes.
Listener notification is deferred to the next frame so a rebuild cannot cancel an in-progress tap gesture (e.g. list item InkWell).
Implementation
void notePointerInteraction() {
if (!_ringsAllowed) {
return;
}
_ringsAllowed = false;
if (_notifyPointerScheduled) {
return;
}
_notifyPointerScheduled = true;
WidgetsBinding.instance.addPostFrameCallback((_) {
_notifyPointerScheduled = false;
notifyListeners();
});
}