* mod: pgc episode title

* opt: ColorScheme.of

* mod: mpv api version

* opt: log handler

* opt: ext
This commit is contained in:
My-Responsitories
2026-05-15 01:59:54 +00:00
committed by dom
parent 09be4f45f0
commit fd211fa394
28 changed files with 93 additions and 179 deletions

View File

@@ -50,7 +50,7 @@ class _LogsPageState extends State<LogsPage> {
logsContent = (await logsPath.readAsLines()).reversed.map((i) {
try {
final log = Report.fromJson(jsonDecode(i));
latestLog ??= log.copyWith();
latestLog ??= log;
return log;
} catch (e, s) {
return Report(
@@ -431,30 +431,7 @@ class Report extends catcher.Report {
null,
);
Report copyWith({
dynamic error,
dynamic stackTrace,
DateTime? dateTime,
Map<String, dynamic>? deviceParameters,
Map<String, dynamic>? applicationParameters,
Map<String, dynamic>? customParameters,
FlutterErrorDetails? errorDetails,
PlatformType? platformType,
}) {
return Report(
error ?? this.error,
stackTrace ?? this.stackTrace,
dateTime ?? this.dateTime,
deviceParameters ?? this.deviceParameters,
applicationParameters ?? this.applicationParameters,
customParameters ?? this.customParameters,
errorDetails ?? this.errorDetails,
platformType ?? this.platformType,
null,
);
}
String _params2String(Map<String, dynamic> params) {
static String _params2String(Map<String, dynamic> params) {
return params.entries
.map((entry) => '${entry.key}: ${entry.value}\n')
.join();