Skip to content

Commit 102a4a5

Browse files
authored
fix: include line height in default text style for CodeField (#297)
1 parent ba829f4 commit 102a4a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/code_field/code_field.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ class _CodeFieldState extends State<CodeField> {
417417
final defaultTextStyle = TextStyle(
418418
color: styles?[rootKey]?.color ?? DefaultStyles.textColor,
419419
fontSize: themeData.textTheme.titleMedium?.fontSize,
420+
height: themeData.textTheme.titleMedium?.height,
420421
);
421422

422423
textStyle = defaultTextStyle.merge(widget.textStyle);

0 commit comments

Comments
 (0)