|
@@ -49,6 +49,8 @@ class FResourceKey {
|
|
|
|
|
|
/// Fis资源集
|
|
|
abstract class FResourceBundle {
|
|
|
+ static AssetBundle? assetBundle;
|
|
|
+
|
|
|
late String _resourcePath;
|
|
|
|
|
|
/// 资源路径
|
|
@@ -79,7 +81,7 @@ abstract class FResourceBundle {
|
|
|
if (FTheme.ins.defaultName == _manifestInfoRefer.name) {
|
|
|
var path =
|
|
|
"packages/${FisUIConsts.themePackageName}/assets/${resourceInfo.path}";
|
|
|
- data = await rootBundle.load(path);
|
|
|
+ data = await (FResourceBundle.assetBundle ?? rootBundle).load(path);
|
|
|
} else {
|
|
|
data = await _innerLoad(resourceInfo);
|
|
|
}
|