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
Persistent selection effect and huge FPS drop when selecting text from a TextFormField with focusNode set to false #148027
Comments
Thanks for the report @GabrielCR99 Flutter's performance is very different between debug mode and release mode. As a result, it's rarely a good idea to measure a Flutter app's performance in debug mode, because the answers will be very different from those in release mode. |
Hello @darshankawar! Unfortunately, I'm not running in debug mode. On my Samsung Galaxy S23 Ultra, it was a production build (release mode) and I was presenting it to our PO, showing new features developed. Whereas on the emulator, I'm also running release mode with flutter run --release, using Windows 11 |
Here's another proof that I'm running in release mode, and this time I'm using showPerformanceOverlay property from MaterialApp. Running the sample code, the same thing happens on my real device - Samsung Galaxy S23 Ultra, Android 14. Looks like the rastering is struggling Screen_Recording_20240509_082451.mp4 |
Thanks for the details @GabrielCR99 Screen_Recording_20240510_111941.mp4However, on latest master version, the performance and behavior is very smooth as shown below: Screen_Recording_20240510_111247.mp4I also confirmed that on latest beta as well, the performance and behavior is smooth and as expected. Indicating, the issue seems to be in stable but not in master and beta, in which you can check and confirm. |
Hi @darshankawar ! Thanks for letting me know about that. I tested it on beta and master and it's working perfectly fine. I wonder, how can I see which commit solved this issue? Is it possible? Many thanks anyway! |
Exactly which commit fixed it, will be difficult to find out, but we will get a new stable release very soon, so hopefully you'll not need to wait for long to verify this in new stable, so I suggest you to keep an eye on stable version. As the reported behavior works as expected in master, per our triage policy, I'll go ahead and close this as fixed. |
Steps to reproduce
Create a simple TextFormField with a custom FocusNode class that overrides the property hasFocus to false. Now, when the TextFormField has any text inside of it, try to select it with your fingers (like selecting a text to copy/cut/paste). You can see that the rendering (?) of the selection will still be there until we close the app completely. Also happens on the emulator, as seen on the video
Expected results
Selecting a TextFormField with FocusNode set to false should be rendered normally
Actual results
Example in a not reproducible project (my company) and also using a Samsung Galaxy S23 Ultra with Android 14
Screen_Recording_20240508_154853.mp4
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Recording.2024-05-08.211136.mp4
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: