feat: Implement paste shortcut and remove popup menu option

taken from https://github.com/krille-chan/fluffychat/pull/2775
This commit is contained in:
Alexey 2026-04-23 12:13:10 +03:00
commit bf21b7f42c
4 changed files with 15 additions and 31 deletions

View file

@ -171,21 +171,6 @@ class ChatInputRow extends StatelessWidget {
contentPadding: const EdgeInsets.all(0),
),
),
if (!PlatformInfos.isMobile)
PopupMenuItem(
value: AddPopupMenuActions.pasteImage,
child: ListTile(
leading: CircleAvatar(
backgroundColor:
theme.colorScheme.onPrimaryContainer,
foregroundColor:
theme.colorScheme.primaryContainer,
child: const Icon(Icons.content_paste),
),
title: Text(L10n.of(context).pasteImage),
contentPadding: const EdgeInsets.all(0),
),
),
PopupMenuItem(
value: AddPopupMenuActions.image,
child: ListTile(