chore: format code
This commit is contained in:
parent
31180f9921
commit
1b3440e2fe
7 changed files with 516 additions and 2 deletions
|
|
@ -47,6 +47,15 @@ class _StatusScreenState extends State<StatusScreen> {
|
|||
}
|
||||
}
|
||||
|
||||
Future<void> _clearLogs() async {
|
||||
final result = await LocationBridge.clearLogs();
|
||||
if (mounted) {
|
||||
if (result >= 0) {
|
||||
await _loadLogs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String _formatTimestamp(int timestamp) {
|
||||
final dt = DateTime.fromMillisecondsSinceEpoch(timestamp);
|
||||
final ms = (dt.millisecond / 1000).toStringAsFixed(3).substring(2);
|
||||
|
|
@ -128,6 +137,14 @@ class _StatusScreenState extends State<StatusScreen> {
|
|||
onPressed: () => Navigator.pop(context),
|
||||
),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(
|
||||
Icons.delete_outline,
|
||||
color: Color(0xFF616161),
|
||||
size: 20,
|
||||
),
|
||||
onPressed: _clearLogs,
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.refresh, color: Color(0xFF616161), size: 20),
|
||||
onPressed: _loadLogs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue