renderCompactView method
dynamic
renderCompactView( - dynamic context,
- dynamic ref
)
Implementation
Widget renderCompactView(BuildContext context, WidgetRef ref) {
final displayName =
ref.watch(roomDisplayNameProvider(spaceId)).valueOrNull ?? spaceId;
return Row(
children: [
Text(L10n.of(context).inSpaceLabelInline),
Text(L10n.of(context).colonCharacter),
InkWell(
onTap: () {
if (!onTapOpenSpaceDetail) {
if (onTapSelectSpace != null) {
onTapSelectSpace!();
return;
}
}
goToSpace(context, spaceId);
},
child: Text(
displayName,
style: Theme.of(context).textTheme.labelLarge!.copyWith(
decoration: TextDecoration.underline,
),
),
),
],
);
}