-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Autocorrect highlight does not go away when screen is locked and unlocked #137666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Reproducible on the latest stable and master using the steps outlined above. updated sampleimport 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: TextFormField(),
),
),
);
}
} flutter doctor -v
|
@hellohuanlin Can you take a look at this and see if it's an iOS or framework issue? |
The issue also happens on iPhones with notch, if during suggestion highlighting the app is switched via swiping on the bottom of the screen to the side. Tested on 3.13.7 |
@jooikwanw can you clarify which specific iOS version are you using (major and minor version as iOS 17 and 17.1 behaves differently) |
@hellohuanlin iOS 17.0.3 |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
I tried to reproduce this on 17.0 and 17.4 simulators, and I could only see it on 17.4, interestingly. CC @LongCatIsLooong (who's currently on vacation for a month) |
The |
This comment was marked as duplicate.
This comment was marked as duplicate.
This issue is assigned to @LongCatIsLooong but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
This issue was assigned to @LongCatIsLooong but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed. |
This looks like an UIKit bug. There's no API to "dismiss" the autocorrect highlight, as it's managed by UIKit. The relevant stack trace I got in my test UIKit app:
but |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Steps to reproduce
Expected results
Highlighting is supposed to disappear when moving to different screens/erasing the word.
Actual results
Probably related to #136837
When I type an incomplete word which will cause the word to be highlighted ("Ji for example"), it will be highlighted for autocomplete. I then turn off the phone screen and back on and the blue highlight box is stuck on the screen no matter what I do (clear the text box/move to a different screen)
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: