Add the ability to see reactors on hover

This commit is contained in:
Henry Hiles 2026-04-08 16:02:15 -04:00
commit 116649e8d7
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -90,33 +90,37 @@ class MessageWrapper extends ConsumerWidget {
clientState!.userId,
);
return SizedBox(
child: ChoiceChip(
showCheckmark: false,
selected: selected,
label: Row(
mainAxisSize: MainAxisSize.min,
spacing: 8,
children: [
reaction.startsWith("mxc://")
? Image(
height: 20,
image: CachedNetworkImage(
headers: ref.headers,
Uri.parse(reaction)
.mxcToHttps(
clientState.homeserverUrl!,
)
.toString(),
ref.watch(
CrossCacheController.provider,
child: Tooltip(
message: reactors.join(", "),
child: ChoiceChip(
showCheckmark: false,
selected: selected,
label: Row(
mainAxisSize: MainAxisSize.min,
spacing: 8,
children: [
reaction.startsWith("mxc://")
? Image(
height: 20,
image: CachedNetworkImage(
headers: ref.headers,
Uri.parse(reaction)
.mxcToHttps(
clientState
.homeserverUrl!,
)
.toString(),
ref.watch(
CrossCacheController.provider,
),
),
),
)
: Text(reaction),
Text(reactors.length.toString()),
],
)
: Text(reaction),
Text(reactors.length.toString()),
],
),
onSelected: (value) {}, // TODO
),
onSelected: (value) {}, // TODO
),
);
}).toList(),