初始化
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/// 图片资源路径扩展:'ic_home.png'.homePath => 'assets/images/home/ic_home.png'
|
||||
extension ImageLoad on String {
|
||||
//通用
|
||||
String get commonImgPath => 'assets/images/common/$this';
|
||||
//首页
|
||||
String get homePath => 'assets/images/home/$this';
|
||||
//视频
|
||||
String get videoPath => 'assets/images/video/$this';
|
||||
//acg(漫画/小说)
|
||||
String get acgImgPath => 'assets/images/acg/$this';
|
||||
//社区
|
||||
String get communityPath => 'assets/images/community/$this';
|
||||
//评论
|
||||
String get commentPath => 'assets/images/comment/$this';
|
||||
//直播
|
||||
String get livePath => 'assets/images/live_images/$this';
|
||||
//ai
|
||||
String get aiPath => 'assets/images/ai/$this';
|
||||
//我的
|
||||
String get mineImgPath => 'assets/images/mine/$this';
|
||||
//启动页
|
||||
String get launchPath => 'assets/images/launch/$this';
|
||||
//app icon
|
||||
String get appImgPath => 'assets/images/app_icon/$this';
|
||||
}
|
||||
Reference in New Issue
Block a user