while using tap there is automatic pump call Future<void> pump([Duration? duration, EnginePhase newPhase = EnginePhase.sendSemanticsUpdate]) there is no ability to pass duration trhough this is why modal dialog is not rendered on screenshots