fix: text style extensions combine logic issue with fontfamily (#1149)

This commit is contained in:
Morn 2025-10-31 09:48:04 +08:00 • committed by GitHub
commit de34eee281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,8 @@ extension TextStyleExtensions on TextStyle {
decorationStyle: other.decorationStyle,
decorationThickness: other.decorationThickness,
debugLabel: other.debugLabel,
fontFamily: other.fontFamily,
fontFamily:
(other.fontFamily?.isEmpty ?? true) ? fontFamily : other.fontFamily,
fontFamilyFallback: other.fontFamilyFallback,
overflow: other.overflow,
);