1 min readMar 3, 2019
Hi, there should already be a GestureDetector that invokes dismiss() when tapped:
For your timer situation, you should be able to use WidgetsBinding.instance.addPostFrameCallback(…) instead. Here is a PR that Simon Lightfoot submitted to solve this problem in the Fluttery library: