Skip to content
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

Text is not painted to the Canvas at the correct position on Flutter 3.0.0 #104275

Closed
bdlukaa opened this issue May 20, 2022 · 3 comments
Closed

Comments

@bdlukaa
Copy link

bdlukaa commented May 20, 2022

Steps to Reproduce

Execute flutter run on the package example app with two different flutter versions:

  1. Flutter 2.10.0
  2. Flutter 3.0.0

Expected results:

example 20_05_2022 14_53_13

Actual results:

example 20_05_2022 14_55_43

For some reason, the text is not painted (painting operation occurs here) at the same position on these two different versions. To paint the background, I use the LineMetrics generated by TextPainter.generateLineMetrics positions. They are the same for both versions (you can run the tests and see), so something may be wrong on paiting the text into the Canvas.

Code sample

https://github.com/bdlukaa/rounded_background_text/blob/master/example/lib/main.dart#L142-L159

Logs
Analyzing example...                                                    
No issues found! (ran in 41.3s)
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [versÆo 10.0.22000.675], locale pt-BR)
    • Flutter version 3.0.0 at C:\Users\bruno\Documents\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (11 days ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\bruno\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31911.196
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.67.2)
    • VS Code at C:\Users\bruno\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versÆo 10.0.22000.675]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 101.0.4951.67
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 101.0.1210.47

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
@jason-simmons
Copy link
Member

This is caused by #104153

@bdlukaa
Copy link
Author

bdlukaa commented May 20, 2022

Marking as duplicate then.

@bdlukaa bdlukaa closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2022
@github-actions
Copy link

github-actions bot commented Jun 4, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants