mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Reverts flutter/engine#53360 Breaking google3 in b/350131288. There is a test that does something like the following, to check if a radio button is selected. ```dart // Send a bunch of tabs to focus on the correct radio button await tester.sendKeyEvent(LogicalKeyboardKey.tab); await tester.pump(); await tester.sendKeyEvent(LogicalKeyboardKey.tab); await tester.pump(); await tester.sendKeyEvent(LogicalKeyboardKey.tab); await tester.pump(); // Toggle the radio button with space await tester.sendKeyEvent(LogicalKeyboardKey.space); await tester.pump(); final selectedRadio = tester.widget<Radio<bool>>(find.byType(Radio<bool>).at(1)); expect(selectedRadio.value, isTrue); ``` After this commit, the above test fails. See the linked bug above for more details.