Merge commit '5b726d58b69e7a8ac02485498066fd13bfa6b9a0' into fluffychat-merge

This commit is contained in:
ggurdin 2025-07-08 09:58:54 -04:00
commit 7d5d8b3813
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -45,15 +45,6 @@ class ChatView extends StatelessWidget {
tooltip: L10n.of(context).copy,
onPressed: controller.copyEventsAction,
),
if (controller.canSaveSelectedEvent)
// Use builder context to correctly position the share dialog on iPad
Builder(
builder: (context) => IconButton(
icon: Icon(Icons.adaptive.share),
tooltip: L10n.of(context).share,
onPressed: () => controller.saveSelectedEvent(context),
),
),
if (controller.canPinSelectedEvents)
IconButton(
icon: const Icon(Icons.push_pin_outlined),
@ -81,6 +72,19 @@ class ChatView extends StatelessWidget {
}
},
itemBuilder: (context) => [
if (controller.canSaveSelectedEvent)
PopupMenuItem(
onTap: () => controller.saveSelectedEvent(context),
value: null,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.download_outlined),
const SizedBox(width: 12),
Text(L10n.of(context).downloadFile),
],
),
),
PopupMenuItem(
value: _EventContextAction.info,
child: Row(