fix (#195) & opt.

- fix: debug provider color
- fix: can't write script through SFTP (#195)
- opt.: go next refresh only after current refresh task is done
This commit is contained in:
lollipopkit
2023-10-30 12:01:07 +08:00
parent eb0b219505
commit 2b52e8e6ee
6 changed files with 72 additions and 42 deletions

View File

@@ -1,3 +1,5 @@
// ignore_for_file: avoid_print
import 'dart:async';
import 'package:flutter/material.dart';
@@ -110,8 +112,8 @@ void _setupLogger() {
Logger.root.level = Level.ALL;
Logger.root.onRecord.listen((record) {
Pros.debug.addLog(record);
// ignore: avoid_print
print(record);
if (record.stackTrace != null) print(record.stackTrace);
});
}