Share logs button
This commit is contained in:
parent
c3b29a59e8
commit
ebc1b1ef1b
1 changed files with 8 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ class _StatusScreenState extends State<StatusScreen> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> _emailLogs() async {
|
||||||
|
await bg.Logger.emailLog("support@traccar.org");
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> _clearLogs() async {
|
Future<void> _clearLogs() async {
|
||||||
await bg.Logger.destroyLog();
|
await bg.Logger.destroyLog();
|
||||||
setState(() => _logs.clear());
|
setState(() => _logs.clear());
|
||||||
|
|
@ -42,6 +46,10 @@ class _StatusScreenState extends State<StatusScreen> {
|
||||||
icon: const Icon(Icons.refresh),
|
icon: const Icon(Icons.refresh),
|
||||||
onPressed: _refreshLogs,
|
onPressed: _refreshLogs,
|
||||||
),
|
),
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.share),
|
||||||
|
onPressed: _emailLogs,
|
||||||
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.delete),
|
icon: const Icon(Icons.delete),
|
||||||
onPressed: _clearLogs,
|
onPressed: _clearLogs,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue