更新东华信息配置
This commit is contained in:
@@ -86,10 +86,10 @@ class _FollowPageState extends State<FollowPage> {
|
||||
// child: widget.webView,
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(AppConstants().ent_type == 1
|
||||
? 'assets/img/followus.png'
|
||||
: "assets/img/huanshuiF.png"), // 本地图片
|
||||
fit: BoxFit.cover, // 填满整个 Container
|
||||
image: AssetImage(
|
||||
getFollowUsImage(AppConstants().ent_type),
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -102,4 +102,15 @@ class _FollowPageState extends State<FollowPage> {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
String getFollowUsImage(int entType) {
|
||||
final Map<int, String> imageMap = {
|
||||
1: 'assets/img/followus.png',
|
||||
2: 'assets/img/huanshuiF.png',
|
||||
4: 'assets/img/donghuaF.png',
|
||||
// 后面继续加
|
||||
};
|
||||
|
||||
return imageMap[entType] ?? 'assets/img/followus.png';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user