Skip to content

Commit 696391a

Browse files
committed
text [nfc]: Edit slightly misleading comment on kMonospaceTextStyle
We don't actually use DefaultTextStyle to set a different variable-weight font, and the old comment text might make a reader go hunting for where we do that. (What we do is set kDefaultFontFamily in zulipTypography, which feeds into [TextTheme].)
1 parent 316cc1a commit 696391a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/widgets/text.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ List<String> get defaultFontFamilyFallback => [
156156
///
157157
/// Callers should also call [weightVariableTextStyle] and merge that in too,
158158
/// because for this font, we use "variable font" assets with a "wght" axis.
159-
/// That is, unless it would be redundant with another step that applies
160-
/// [weightVariableTextStyle]; for example, a [DefaultTextStyle] that specifies
161-
/// a different variable-weight font that we're overriding with this one.
159+
/// That is, unless we've already applied [weightVariableTextStyle]
160+
/// for a different variable-weight font that we're overriding with this one.
162161
///
163162
/// Example:
164163
///

0 commit comments

Comments
 (0)