chore: format code

This commit is contained in:
fiatcode 2026-05-04 08:28:05 +07:00
parent 31180f9921
commit 1b3440e2fe
No known key found for this signature in database
7 changed files with 516 additions and 2 deletions

View file

@ -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,