I've started using the widget yesterday, so I haven't explored everything, however I am getting an error when specifying a simple TextStyle instance to the textStyle parameter, when creating the WeekdaySelector widget.
The TextStyles being interpolated were:
from: TextStyle
inherit: true
color: Color(0xff1b1b1f)
to: TextStyle
debugLabel: (((englishLike bodyMedium 2021).merge(((blackMountainView bodyMedium).apply).merge(unknown))).copyWith).copyWith
inherit: false
color: Color(0xffffffff)
family: Merriweather_regular
familyFallback: Merriweather
size: 14.0
weight: 400
letterSpacing: 0.3
baseline: alphabetic
height: 1.4x
leadingDistribution: even
decoration: Color(0xff1b1b1f) TextDecoration.none
The following fields are unspecified in both TextStyles:
"backgroundColor", "wordSpacing", "decorationThickness".
When "inherit" changes during the transition, these fields may observe abrupt value changes as a result, causing "jump"s in the transition.
In general, TextStyle.lerp only works well when both TextStyles have the same "inherit" value, and specify the same fields.
If the TextStyles were directly created by you, consider bringing them to parity to ensure a smooth transition.
If one of the TextStyles being lerped is significantly more elaborate than the other, and has "inherited" set to false, it is often because it is merged with another TextStyle before being lerped. Comparing the "debugLabel"s of the two TextStyles may help identify if that was the case.
For example, you may see this error message when trying to lerp between "ThemeData()" and "Theme.of(context)". This is because TextStyles from "Theme.of(context)" are merged with TextStyles from another theme and thus are more elaborate than the TextStyles from "ThemeData()" (which is reflected in their "debugLabel"s -- TextStyles from "Theme.of(context)" should have labels in the form of "(<A TextStyle>).merge(<Another TextStyle>)"). It is recommended to only lerp ThemeData with matching TextStyles.
Hi there!
I've started using the widget yesterday, so I haven't explored everything, however I am getting an error when specifying a simple TextStyle instance to the textStyle parameter, when creating the WeekdaySelector widget.
Here's the code:
ERROR INFORMATION
STRACK TRACE
Removing the textStyle option gets the widget back to working. Am I using the widget textStyle parameter incorrectly?
Thanks!