make popup appear above button.

This commit is contained in:
ericz 2026-03-13 07:12:52 +01:00
parent 91072bb9c6
commit ee211b8d28
2 changed files with 4 additions and 2 deletions

View file

@ -1098,7 +1098,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
PopupMenuButton<_ChannelChatInputAction>(
icon: const Icon(Icons.add_circle_outline),
tooltip: context.l10n.common_add,
offset: const Offset(0, -8),
position: PopupMenuPosition.over,
offset: const Offset(0, -180),
onSelected: (action) {
if (action == _ChannelChatInputAction.sendGif) {
_showGifPicker(context);

View file

@ -353,7 +353,8 @@ class _ChatScreenState extends State<ChatScreen> {
PopupMenuButton<_ChatInputAction>(
icon: const Icon(Icons.add_circle_outline),
tooltip: context.l10n.common_add,
offset: const Offset(0, -8),
position: PopupMenuPosition.over,
offset: const Offset(0, -180),
onSelected: (action) {
if (action == _ChatInputAction.sendGif) {
_showGifPicker(context);