Skip to content

Commit

Permalink
text [nfc]: Remove some arguments that equal defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe authored and gnprice committed May 20, 2024
1 parent c39874d commit fd32618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ class _InlineContentBuilder {
}

InlineSpan _buildStrong(StrongNode node) => _buildNodes(node.nodes,
style: weightVariableTextStyle(_context!, wght: 600, wghtIfPlatformRequestsBold: 900));
style: weightVariableTextStyle(_context!, wght: 600));

InlineSpan _buildDeleted(DeletedNode node) => _buildNodes(node.nodes,
style: const TextStyle(decoration: TextDecoration.lineThrough));
Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/message_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,7 @@ class MessageWithPossibleSender extends StatelessWidget {
fontFamily: 'Source Sans 3',
fontSize: 18,
height: (22 / 18),
).merge(weightVariableTextStyle(context, wght: 600,
wghtIfPlatformRequestsBold: 900)),
).merge(weightVariableTextStyle(context, wght: 600)),
overflow: TextOverflow.ellipsis)),
if (sender?.isBot ?? false) ...[
const SizedBox(width: 5),
Expand Down

0 comments on commit fd32618

Please sign in to comment.