-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed as not planned
Closed as not planned
Copy link
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Description
I using theme in my app and i get TextStyles from Theme to using in my HorizontalNumberPicker widget as seeing below
And i add some text animation to my HorizontalNumberPicker with AnimatedTweenTextStyle widget.
It takes a text style and whenever rebuilds with new text style it will animate between them.
For doing that it use TextStyle.lerp method but i got an assertion error as seeing below
and i look to the flutter sdk and i realized the error comes from this line:
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?
Metadata
Metadata
Assignees
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue