mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 10:23:11 +00:00
feat: proper separate getter for clipboard content
This commit is contained in:
parent
47f3d5f53c
commit
6eb5299d46
|
@ -33,7 +33,7 @@ sealed class ConsoleLog {
|
|||
|
||||
/// data available for copy in dialog
|
||||
String? get shareableData => '$title\n'
|
||||
'$content';
|
||||
'{\n$content\n}';
|
||||
|
||||
static final DateFormat _formatter = DateFormat('hh:mm:ss');
|
||||
String get timeString => _formatter.format(time);
|
||||
|
|
|
@ -112,7 +112,7 @@ class ConsoleItemDialog extends StatelessWidget {
|
|||
// A button to copy the request to the clipboard
|
||||
if (log.shareableData?.isNotEmpty ?? false)
|
||||
TextButton(
|
||||
onPressed: () => PlatformAdapter.setClipboard(log.content),
|
||||
onPressed: () => PlatformAdapter.setClipboard(log.shareableData!),
|
||||
child: Text('console_page.copy'.tr()),
|
||||
),
|
||||
// close dialog
|
||||
|
|
Loading…
Reference in a new issue