TestTextInput state reset

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

The state of a TestTextInput instance,
a stub for the system’s onscreen keyboard,
is now reset between tests.

Context

The Flutter test framework uses a class called TestTextInput
to track and manipulate editing state in a widgets test.
Individual tests can make calls that modify the internal
state of this object, sometimes indirectly (such as
by setting their own handlers on SystemChannels.textInput).
Subsequent tests might then check the state of
WidgetTester.testTextInput and get unexpected values.

Description of change

The state of WidgetTester.testTextInput
is now reset before running a testWidgets test.

Migration guide