ui adjustments

This commit is contained in:
Jonas Bark
2025-11-29 10:57:14 +00:00
parent f234f665e0
commit aeb302da1a

View File

@@ -111,7 +111,24 @@ class _LogviewerState extends State<LogViewer> {
),
),
),
SelectableText('Logs are also available at\n${File('${Directory.current.path}/app.logs').path}').muted.small,
Text('Logs are also at').muted.small,
CodeSnippet(
code: SelectableText(File('${Directory.current.path}/app.logs').path),
actions: [
IconButton(
icon: Icon(Icons.copy),
variance: ButtonVariance.outline,
onPressed: () {
Clipboard.setData(ClipboardData(text: File('${Directory.current.path}/app.logs').path));
showToast(
context: context,
builder: (c, overlay) => buildToast(context, overlay, title: 'Path has been copied to clipboard'),
);
},
),
],
),
],
);
}