chore: New save file event button
This commit is contained in:
parent
48ec98c614
commit
5b726d58b6
1 changed files with 13 additions and 9 deletions
|
|
@ -48,15 +48,6 @@ class ChatView extends StatelessWidget {
|
||||||
tooltip: L10n.of(context).copy,
|
tooltip: L10n.of(context).copy,
|
||||||
onPressed: controller.copyEventsAction,
|
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)
|
if (controller.canPinSelectedEvents)
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.push_pin_outlined),
|
icon: const Icon(Icons.push_pin_outlined),
|
||||||
|
|
@ -84,6 +75,19 @@ class ChatView extends StatelessWidget {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
itemBuilder: (context) => [
|
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(
|
PopupMenuItem(
|
||||||
value: _EventContextAction.info,
|
value: _EventContextAction.info,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue