Ver código fonte

1.修复会员中心背景图闪烁问题

tags/0.0.3+6
“yanghuaxuan” 3 anos atrás
pai
commit
1043b19c6e
3 arquivos alterados com 17 adições e 3 exclusões
  1. +2
    -2
      example/android/app/build.gradle
  2. +1
    -1
      example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java
  3. +14
    -0
      lib/pages/main_page/main_page.dart

+ 2
- 2
example/android/app/build.gradle Ver arquivo

@@ -112,9 +112,9 @@ android {
// 智夜生活
zhiying {
applicationId "cn.zhios.zhiying"
versionCode 26
versionCode 27
dimension "app"
versionName '1.2.26'
versionName '1.2.27'
// 签名信息
signingConfig signingConfigs.zhiying
}


+ 1
- 1
example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java Ver arquivo

@@ -139,7 +139,7 @@ public class MainActivity extends FlutterActivity implements ZhiyingFlutterCommN
Map map = new HashMap();
map.put("domain", "http://inapi.izhyin.cn/"); //"http://120.76.175.204:8989");
// map.put("domain", "http://192.168.0.113:5000");
map.put("master_id", "963258");
map.put("master_id", "123456");
map.put("secret_key", "123456");
// map.put("token", "123465");
return map;


+ 14
- 0
lib/pages/main_page/main_page.dart Ver arquivo

@@ -198,6 +198,20 @@ class _MainPageContainerState extends State<_MainPageContainer> {
),
);
}
if (item.modName == "member_info") {
final double statusBarHeight = MediaQuery.of(context).padding.top;
String url=json.decode(item.data)['bg_image'];
String bgColor=json.decode(item.data)['bg_color'];
return Container(
width: double.infinity,
height: statusBarHeight + 250,
color: HexColor.fromHex(bgColor??""),
child: CachedNetworkImage(
imageUrl: url??"",
fit: BoxFit.fitHeight,
),
);
}
}
return null;
}


Carregando…
Cancelar
Salvar