FlutterDriver problem not able to find Widget by Key

Posted by Editorial Staff | Updated on

FlutterDriver problem not able to find Widget by Key. The flutter driver is by default frame synchronized, it will wait until there is no pending frame(s), but if there is infinite animation, the test will go to the timeout and fail.

To fix this, you need to wrap your tests with the driver.runUnsynchronized() method. Like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers