We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a3cf9 commit d289cdeCopy full SHA for d289cde
1 file changed
lib/models/isar/stack_theme.dart
@@ -1,4 +1,5 @@
1
import 'dart:convert';
2
+import 'dart:io';
3
4
import 'package:flutter/material.dart';
5
import 'package:isar/isar.dart';
@@ -2444,9 +2445,20 @@ class ThemeAssetsV3 implements IThemeAssets {
2444
2445
2446
static String prependIfNeeded(String relativePath) {
2447
final path = StackFileSystem.themesDir!.path;
2448
+
2449
if (relativePath.startsWith(path)) {
2450
return relativePath;
2451
} else {
2452
+ if (Platform.isIOS) {
2453
+ const pattern = "/var/mobile/Containers/Data/Application/";
2454
+ if (relativePath.startsWith(pattern)) {
2455
+ final parts = relativePath.split("/Library/themes/");
2456
+ if (parts.isNotEmpty) {
2457
+ return "$path/${parts.last}";
2458
+ }
2459
2460
2461
2462
return "$path/$relativePath";
2463
}
2464
0 commit comments