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
Labels
r: duplicate
Issue is closed as a duplicate of an existing issue
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
I curioused why this happen?
The text was updated successfully, but these errors were encountered: