Skip to content

Commit 53a5cea

Browse files
round textstyle height for flutter
1 parent 164f5d5 commit 53a5cea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/designto-flutter/painting/painting-text-style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function textStyle(style: ITextStyle): flutter.TextStyle {
1818
color: dartui.color(style.color),
1919
fontStyle: fontStyle(style.fontStyle),
2020
letterSpacing: length.letterSpacing(style.fontSize, letterSpacing),
21-
height: length.multiple(style.fontSize, style.lineHeight),
21+
height: rd(length.multiple(style.fontSize, style.lineHeight)),
2222
decoration: decoration,
2323
shadows: dartui.shadow(style.textShadow),
2424
});

0 commit comments

Comments
 (0)