🐛 Fix serval path breaking changes

This commit is contained in:
2025-07-19 02:50:24 +08:00
parent 3a4faac8cb
commit 4499d4ec8e
3 changed files with 10 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ class CloudFileList extends HookConsumerWidget {
double calculateAspectRatio() {
double total = 0;
for (var ratio in files.map((e) => e.fileMeta?['ratio'] ?? 1)) {
total += ratio;
total += double.parse(ratio);
}
if (total == 0) return 1;
return total / files.length;