@@ -220,32 +220,42 @@ class SubscriptionItem extends StatelessWidget {
220
220
},
221
221
child: Row (crossAxisAlignment: CrossAxisAlignment .center, children: [
222
222
const SizedBox (width: 16 ),
223
- Padding (
224
- padding: const EdgeInsets .symmetric (vertical: 11 ),
225
- child: Icon (size: 18 , color: swatch.iconOnPlainBackground,
226
- iconDataForStream (subscription))),
227
- const SizedBox (width: 5 ),
228
223
Expanded (
229
- child: Padding (
230
- padding: const EdgeInsets .symmetric (vertical: 10 ),
231
- // TODO(design): unclear whether bold text is applied to all subscriptions
232
- // or only those with unreads:
233
- // https://github.com/zulip/zulip-flutter/pull/397#pullrequestreview-1742524205
234
- child: Text (
235
- style: const TextStyle (
236
- fontSize: 18 ,
237
- height: (20 / 18 ),
238
- // TODO(#95) need dark-theme color
239
- color: Color (0xFF262626 ),
240
- ).merge (weightVariableTextStyle (context,
241
- wght: hasUnreads ? 600 : null )),
242
- maxLines: 1 ,
243
- overflow: TextOverflow .ellipsis,
244
- subscription.name))),
224
+ child: Opacity (
225
+ opacity: subscription.isMuted ? 0.55 : 1 ,
226
+ child: Row (children: [
227
+ Padding (
228
+ padding: const EdgeInsets .symmetric (vertical: 11 ),
229
+ child: Icon (size: 18 , color: swatch.iconOnPlainBackground,
230
+ iconDataForStream (subscription))),
231
+ const SizedBox (width: 5 ),
232
+ Expanded (
233
+ child: Padding (
234
+ padding: const EdgeInsets .symmetric (vertical: 10 ),
235
+ // TODO(design): unclear whether bold text is applied to all subscriptions
236
+ // or only those with unreads:
237
+ // https://github.com/zulip/zulip-flutter/pull/397#pullrequestreview-1742524205
238
+ child: Text (
239
+ style: const TextStyle (
240
+ fontSize: 18 ,
241
+ height: (20 / 18 ),
242
+ // TODO(#95) need dark-theme color
243
+ color: Color (0xFF262626 ),
244
+ ).merge (weightVariableTextStyle (context,
245
+ wght: hasUnreads ? 600 : null )),
246
+ maxLines: 1 ,
247
+ overflow: TextOverflow .ellipsis,
248
+ subscription.name))),
249
+ ]))),
245
250
if (unreadCount > 0 ) ...[
246
251
const SizedBox (width: 12 ),
247
252
// TODO(#747) show @-mention indicator when it applies
248
- UnreadCountBadge (count: unreadCount, backgroundColor: swatch, bold: true ),
253
+ Opacity (
254
+ opacity: subscription.isMuted ? 0.55 : 1 ,
255
+ child: UnreadCountBadge (
256
+ count: unreadCount,
257
+ backgroundColor: swatch,
258
+ bold: true )),
249
259
],
250
260
const SizedBox (width: 16 ),
251
261
])));
0 commit comments