diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 8b03bfedde..9ae6d0f600 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -5357,10 +5357,8 @@ class EditableTextState extends State with AutomaticKeepAliveClien String text = _value.text; text = widget.obscuringCharacter * text.length; // Reveal the latest character in an obscured field only on mobile. - // Newer versions of iOS (iOS 15+) no longer reveal the most recently - // entered character. const Set mobilePlatforms = { - TargetPlatform.android, TargetPlatform.fuchsia, + TargetPlatform.android, TargetPlatform.fuchsia, TargetPlatform.iOS, }; final bool brieflyShowPassword = WidgetsBinding.instance.platformDispatcher.brieflyShowPassword && mobilePlatforms.contains(defaultTargetPlatform); diff --git a/packages/flutter/test/widgets/editable_text_test.dart b/packages/flutter/test/widgets/editable_text_test.dart index 7abbadb37f..84e4d1923b 100644 --- a/packages/flutter/test/widgets/editable_text_test.dart +++ b/packages/flutter/test/widgets/editable_text_test.dart @@ -4980,7 +4980,7 @@ void main() { await tester.pump(const Duration(milliseconds: 500)); await tester.pump(const Duration(milliseconds: 500)); expect((findRenderEditable(tester).text! as TextSpan).text, '•••'); - }); + }, variant: const TargetPlatformVariant({ TargetPlatform.iOS, TargetPlatform.android, TargetPlatform.fuchsia, })); group('a11y copy/cut/paste', () { Future buildApp(MockTextSelectionControls controls, WidgetTester tester) {