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