Add the ability to see reactors on hover
This commit is contained in:
parent
5f5ad911c2
commit
116649e8d7
1 changed files with 29 additions and 25 deletions
|
|
@ -90,33 +90,37 @@ class MessageWrapper extends ConsumerWidget {
|
||||||
clientState!.userId,
|
clientState!.userId,
|
||||||
);
|
);
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
child: ChoiceChip(
|
child: Tooltip(
|
||||||
showCheckmark: false,
|
message: reactors.join(", "),
|
||||||
selected: selected,
|
child: ChoiceChip(
|
||||||
label: Row(
|
showCheckmark: false,
|
||||||
mainAxisSize: MainAxisSize.min,
|
selected: selected,
|
||||||
spacing: 8,
|
label: Row(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
reaction.startsWith("mxc://")
|
spacing: 8,
|
||||||
? Image(
|
children: [
|
||||||
height: 20,
|
reaction.startsWith("mxc://")
|
||||||
image: CachedNetworkImage(
|
? Image(
|
||||||
headers: ref.headers,
|
height: 20,
|
||||||
Uri.parse(reaction)
|
image: CachedNetworkImage(
|
||||||
.mxcToHttps(
|
headers: ref.headers,
|
||||||
clientState.homeserverUrl!,
|
Uri.parse(reaction)
|
||||||
)
|
.mxcToHttps(
|
||||||
.toString(),
|
clientState
|
||||||
ref.watch(
|
.homeserverUrl!,
|
||||||
CrossCacheController.provider,
|
)
|
||||||
|
.toString(),
|
||||||
|
ref.watch(
|
||||||
|
CrossCacheController.provider,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
: Text(reaction),
|
||||||
: Text(reaction),
|
Text(reactors.length.toString()),
|
||||||
Text(reactors.length.toString()),
|
],
|
||||||
],
|
),
|
||||||
|
onSelected: (value) {}, // TODO
|
||||||
),
|
),
|
||||||
onSelected: (value) {}, // TODO
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue