Add linux deb dependencies Add backup recovery strategy select Support custom text scaling Optimize the display of different text scale Optimize windows setup experience Optimize startTun performance Optimize android tv experience Optimize default option Optimize computed text size Optimize hyperOS freeform window Add developer mode Update core Optimize more details
28 lines
555 B
Dart
28 lines
555 B
Dart
import 'package:fl_clash/models/models.dart';
|
|
import 'package:fl_clash/state.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class CommonPrint {
|
|
static CommonPrint? _instance;
|
|
|
|
CommonPrint._internal();
|
|
|
|
factory CommonPrint() {
|
|
_instance ??= CommonPrint._internal();
|
|
return _instance!;
|
|
}
|
|
|
|
log(String? text) {
|
|
final payload = "[FlClash] $text";
|
|
debugPrint(payload);
|
|
if (globalState.isService) {
|
|
return;
|
|
}
|
|
globalState.appController.addLog(
|
|
Log.app(payload),
|
|
);
|
|
}
|
|
}
|
|
|
|
final commonPrint = CommonPrint();
|