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

package:flutter/src/painting/text_style.dart': Failed assertion: line 1063 pos 12: 'a == null || b == null || a.inherit == b.inherit': is not true. #110438

Closed
zamaniafshar opened this issue Aug 28, 2022 · 2 comments
Labels
r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@zamaniafshar
Copy link

I using theme in my app and i get TextStyles from Theme to using in my HorizontalNumberPicker widget as seeing below

image
image
image

And i add some text animation to my HorizontalNumberPicker with AnimatedTweenTextStyle widget.

image

It takes a text style and whenever rebuilds with new text style it will animate between them.

image

For doing that it use TextStyle.lerp method but i got an assertion error as seeing below

image

and i look to the flutter sdk and i realized the error comes from this line:

image

And then after a while i find two way to fix this error:

  • 1 comment that line in the flutter sdk

  • 2 stop getting TextStyles from theme

flutter doctor

C:\Users\zaman>fvm spawn 3.0.4 doctor -v
Spawning version "3.0.4"...
[√] Flutter (Channel stable, 3.0.4, on Microsoft Windows [Version 10.0.19044.1706], locale fa-IR)
    • Flutter version 3.0.4 at C:\Users\zaman\fvm\versions\3.0.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (8 weeks ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\zaman\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

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] 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.70.0)
    • VS Code at C:\Users\zaman\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.46.0

[√] Connected device (4 available)
    • SM A310F (mobile) • 5203280dc0b58331 • android-arm    • Android 7.0 (API 24)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 104.0.5112.102
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 104.0.1293.70

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

! Doctor found issues in 1 category.

I curioused why this happen?

@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Aug 29, 2022
@danagbemava-nc
Copy link
Member

See also
#70281
#103864

Closing this as a duplicate of #103864

@danagbemava-nc danagbemava-nc closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2022
@danagbemava-nc danagbemava-nc added r: duplicate Issue is closed as a duplicate of an existing issue and removed in triage Presently being triaged by the triage team labels Aug 29, 2022
@github-actions
Copy link

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 Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

2 participants