We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bold
1 parent 4ddbda4 commit 343cf32Copy full SHA for 343cf32
lib/widgets/unread_count_badge.dart
@@ -12,9 +12,11 @@ class UnreadCountBadge extends StatelessWidget {
12
const UnreadCountBadge({
13
super.key,
14
required this.count,
15
+ this.bold = false,
16
});
17
18
final int count;
19
+ final bool bold;
20
21
@override
22
Widget build(BuildContext context) {
@@ -32,7 +34,9 @@ class UnreadCountBadge extends StatelessWidget {
32
34
height: (18 / 16),
33
35
fontFeatures: [FontFeature.enable('smcp')], // small caps
36
color: Color(0xFF222222),
- ).merge(weightVariableTextStyle(context)),
37
+ ).merge(bold
38
+ ? weightVariableTextStyle(context, wght: 600, wghtIfPlatformRequestsBold: 900)
39
+ : weightVariableTextStyle(context)),
40
count.toString())));
41
}
42
0 commit comments