mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: long press to clear logs
avoid being unable to clear logs when stuck in logspage Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:PiliPalaX/services/loggeer.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
@@ -167,6 +168,9 @@ class _AboutPageState extends State<AboutPage> {
|
||||
onTap: () {
|
||||
Get.toNamed('/logs');
|
||||
},
|
||||
onLongPress: () {
|
||||
clearLogs();
|
||||
},
|
||||
leading: const Icon(Icons.bug_report_outlined),
|
||||
title: const Text('错误日志'),
|
||||
trailing: Icon(Icons.arrow_forward, size: 16, color: outline),
|
||||
|
||||
Reference in New Issue
Block a user