slight refactor of callback in message avatar widget
This commit is contained in:
parent
451875b137
commit
4e5c709fb9
1 changed files with 5 additions and 7 deletions
|
|
@ -15,13 +15,11 @@ class MessageAvatar extends ConsumerWidget {
|
||||||
Widget build(BuildContext context, WidgetRef ref) =>
|
Widget build(BuildContext context, WidgetRef ref) =>
|
||||||
switch (ref.watch(AuthorController.provider(event))) {
|
switch (ref.watch(AuthorController.provider(event))) {
|
||||||
AsyncData(:final value) || AsyncLoading(:final value?) => InkWell(
|
AsyncData(:final value) || AsyncLoading(:final value?) => InkWell(
|
||||||
onTapUp: (details) {
|
onTapUp: (details) => context.showUserPopover(
|
||||||
context.showUserPopover(
|
value,
|
||||||
value,
|
event.sender,
|
||||||
event.sender,
|
globalPosition: details.globalPosition,
|
||||||
globalPosition: details.globalPosition,
|
),
|
||||||
);
|
|
||||||
},
|
|
||||||
child: AvatarOrHash(
|
child: AvatarOrHash(
|
||||||
value.avatarUrl,
|
value.avatarUrl,
|
||||||
value.displayName ?? event.sender.localpart,
|
value.displayName ?? event.sender.localpart,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue