roomListTitle method
dynamic
roomListTitle( - dynamic context
)
Implementation
Widget roomListTitle(BuildContext context) {
final lang = L10n.of(context);
String? title;
if (ref.watch(hasRoomFilters)) {
final selection = ref.watch(
roomListFilterProvider.select((value) => value.selection),
);
title = switch (selection) {
FilterSelection.dmsOnly => lang.dms,
FilterSelection.favorites => lang.bookmarked,
_ => null,
};
}
return Text(
title ?? lang.chat,
style: Theme.of(context).textTheme.headlineSmall,
);
}