I'm creating an integration test to my flutter app but I get this error when finding an TextInput and trying to type inside.
The error: 'package:flutter_test/src/binding.dart': Failed assertion: line 1649 pos 12: '_pendingFrame == null': is not true.
The code:
final Finder email = find.byWidgetPredicate(
(widget) => widget is FutXTextField && widget.title == 'EMAIL',
);
expect(email, findsOneWidget,
reason: " Só pode haver um botão de escrever email");
await tester.enterText(email, "teste@teste.teste");
I didn`t find it anywhere on the internet what this error is.
Does anyone had this exception before and has any idea of how to solve it?