diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index da722a1..020b475 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -107,31 +107,14 @@ android { } -// // 签名配置 -// signingConfigs { -// // 智夜生活 -// zhiying { -// storeFile file('zhiying.jks') -// storePassword 'zhioscom' -// keyAlias 'zysh' -// keyPassword 'zhioscom' -// v1SigningEnabled true -// v2SigningEnabled true -// } -// -// } -// -// flavorDimensions "app" -// -// -// // 应用信息配置 + // 应用信息配置 // productFlavors { // // 智夜生活 // zhiying { // applicationId "cn.zhios.zhiying" -// versionCode 3 +// versionCode 14 // dimension "app" -// versionName '1.0.3' +// versionName '1.1.4' // // 签名信息 // signingConfig signingConfigs.zhiying // } @@ -229,6 +212,13 @@ MobSDK { bypassApproval false enable true } + Wechat { + appId "wx598aaef252cd78e4" + appSecret "d2fc2edf9ece746765b3bfc0bf1b230e" + withShareTicket true + bypassApproval false + enable true + } WechatMoments { enable true } diff --git a/example/android/app/src/main/res/drawable/bg_launcher.png b/example/android/app/src/main/res/drawable/bg_launcher.png deleted file mode 100644 index a5f9062..0000000 Binary files a/example/android/app/src/main/res/drawable/bg_launcher.png and /dev/null differ diff --git a/example/android/app/src/main/res/drawable/launch_background.xml b/example/android/app/src/main/res/drawable/launch_background.xml index 7b672c6..0f820bc 100644 --- a/example/android/app/src/main/res/drawable/launch_background.xml +++ b/example/android/app/src/main/res/drawable/launch_background.xml @@ -6,6 +6,6 @@ + android:src="@mipmap/start" /> diff --git a/lib/widgets/goods_details/detail_img/goods_details_img.dart b/lib/widgets/goods_details/detail_img/goods_details_img.dart index 992313c..b3d3593 100644 --- a/lib/widgets/goods_details/detail_img/goods_details_img.dart +++ b/lib/widgets/goods_details/detail_img/goods_details_img.dart @@ -4,6 +4,7 @@ import 'package:zhiying_base_widget/widgets/goods_details/detail_img/bloc/goods_ import 'package:zhiying_base_widget/widgets/goods_details/detail_img/goods_details_img_sk.dart'; import 'package:zhiying_base_widget/widgets/goods_details/detail_img/model/goods_details_img_model.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; +import 'package:shimmer/shimmer.dart'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:zhiying_base_widget/widgets/goods_details/detail_img/bloc/goods_details_img_repository.dart'; @@ -111,7 +112,13 @@ class _GoodsDetailsImgWidgetContainerState placeholder: (context, url){ return AspectRatio( aspectRatio: 1/1, - child: Container(color: Colors.white, height: double.infinity, width: double.infinity,), + child: _shimmerWidget(height: double.infinity, width: double.infinity,), + ); + }, + progressIndicatorBuilder: (context, url ,progress){ + return AspectRatio( + aspectRatio: 1/1, + child: _shimmerWidget(height: double.infinity, width: double.infinity,), ); }, ), @@ -151,4 +158,17 @@ class _GoodsDetailsImgWidgetContainerState ], ); } + + /// 骨架视图 + Widget _shimmerWidget({double width, double height, double radius = 0}) { + return Shimmer.fromColors( + baseColor: Colors.grey[300], + highlightColor: Colors.grey[100], + child: Container( + width: width, + height: height, + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(radius)), + ), + ); + } }