assetsPath property
UI 资源路径,用于自定义皮肤。
UI assets path for customizing skins.
- 默认值:PlayerAssetsScope.defaultAssetsPath(包内资源)
- 自定义:客户应用资源路径,如
assets/player_icons
自定义皮肤步骤:
- 在应用目录创建资源文件夹,如
assets/player_icons/ - 在应用
pubspec.yaml中注册:- assets/player_icons/ - 传入此参数:
assetsPath: 'assets/player_icons'
Implementation
final String assetsPath;