Skip to content

Commit 870d22e

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 34da52f commit 870d22e

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
@@ -1232,7 +1232,6 @@ class MessageWithPossibleSender extends StatelessWidget {
12321232
Flexible(
12331233
child: Text(message.senderFullName, // TODO get from user data
12341234
style: TextStyle(
1235-
fontFamily: 'Source Sans 3',
12361235
fontSize: 18,
12371236
height: (22 / 18),
12381237
color: messageListTheme.senderName,
@@ -1251,7 +1250,6 @@ class MessageWithPossibleSender extends StatelessWidget {
12511250
Text(time,
12521251
style: TextStyle(
12531252
color: messageListTheme.messageTimestamp,
1254-
fontFamily: 'Source Sans 3',
12551253
fontSize: 16,
12561254
height: (18 / 16),
12571255
fontFeatures: const [FontFeature.enable('c2sc'), FontFeature.enable('smcp')],

0 commit comments

Comments
 (0)