forked from Nexus/nexus
use a text span with a recognizer instead of a WidgetSpan
Fixes displaynames not ellipsising properly
This commit is contained in:
parent
1efbc131b4
commit
f971c50df0
1 changed files with 139 additions and 67 deletions
|
|
@ -3,6 +3,9 @@ import "package:nexus/helpers/extensions/show_adaptive_popover.dart";
|
|||
import "package:nexus/widgets/user_bottom_sheet.dart";
|
||||
|
||||
extension ShowUserPopover on BuildContext {
|
||||
void showUserPopover(String userId, {String? roomId}) =>
|
||||
showAdaptivePopover((context) => UserBottomSheet(userId, roomId: roomId));
|
||||
void showUserPopover(String userId, {String? roomId, Rect? anchor}) =>
|
||||
showAdaptivePopover(
|
||||
(context) => UserBottomSheet(userId, roomId: roomId),
|
||||
anchor: anchor,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue