Skip to content

Commit 7c818ac

Browse files
committed
msglist [nfc]: Remove unnecessary fontFamily argument.
We supplied the font 'Source Sans 3' to `TextTheme.bodyMedium` in `lib/widgets/text.dart`. When rendered, `Material` applies this font via `AnimatedDefaultTextStyle` by default, so there is no need to override `fontFamily` explicitly. See: zulip#900 (comment) Signed-off-by: Zixuan James Li <[email protected]>
1 parent 8f62edc commit 7c818ac

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/widgets/message_list.dart

-2
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,6 @@ class MessageWithPossibleSender extends StatelessWidget {
12311231
Flexible(
12321232
child: Text(message.senderFullName, // TODO get from user data
12331233
style: TextStyle(
1234-
fontFamily: 'Source Sans 3',
12351234
fontSize: 18,
12361235
height: (22 / 18),
12371236
color: messageListTheme.senderName,
@@ -1250,7 +1249,6 @@ class MessageWithPossibleSender extends StatelessWidget {
12501249
Text(time,
12511250
style: TextStyle(
12521251
color: messageListTheme.messageTimestamp,
1253-
fontFamily: 'Source Sans 3',
12541252
fontSize: 16,
12551253
height: (18 / 16),
12561254
fontFeatures: const [FontFeature.enable('c2sc'), FontFeature.enable('smcp')],

0 commit comments

Comments
 (0)