Skip to content

Commit

Permalink
Add potential bug fix on real iOS devices
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Mar 20, 2024
1 parent 66fe65a commit 6458470
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/src/act/act.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ class Act {
binding.focusedEditable = editableTextState;
await binding.pump();

if (!kIsWeb) {
// Fix for enterText() not working in release mode on real iOS devices.
// See https://github.com/flutter/flutter/pull/89703
// Also a fix for enterText() not being able to interact with the same
// textfield 2 times in the same test.
// See https://github.com/flutter/flutter/issues/134604
binding.testTextInput.register();
}

final testTextInput = binding.testTextInput;
testTextInput.enterText(text);
await binding.pump();
Expand Down

0 comments on commit 6458470

Please sign in to comment.