Skip to content

Commit f2dcabd

Browse files
authored
fix: fontVariations are missing (#156)
1 parent c7ab2f6 commit f2dcabd

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

lib/src/utilities.dart

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,8 @@ extension GoldenTestTextStyleExtensions on TextStyle {
129129
/// use in golden tests.
130130
@protected
131131
TextStyle stripAlchemistPackage() {
132-
return TextStyle(
133-
inherit: inherit,
134-
color: color,
135-
backgroundColor: backgroundColor,
136-
fontSize: fontSize,
137-
fontWeight: fontWeight,
138-
fontStyle: fontStyle,
139-
letterSpacing: letterSpacing,
140-
wordSpacing: wordSpacing,
141-
textBaseline: textBaseline,
142-
height: height,
143-
leadingDistribution: leadingDistribution,
144-
locale: locale,
145-
foreground: foreground,
146-
background: background,
147-
shadows: shadows,
148-
fontFeatures: fontFeatures,
149-
decoration: decoration,
150-
decorationColor: decorationColor,
151-
decorationStyle: decorationStyle,
152-
decorationThickness: decorationThickness,
153-
debugLabel: debugLabel,
132+
return copyWith(
154133
fontFamily: fontFamily?.stripFontFamilyAlchemistPackageName(),
155-
fontFamilyFallback: fontFamilyFallback,
156-
overflow: overflow,
157134
);
158135
}
159136
}

0 commit comments

Comments
 (0)