Commit ca0d27b66d9e1e94216f16f103a70438c076bb77
1 parent
aeafd474
feat:会员有效期增加点击跳转&coco游戏android版本升级
Showing
3 changed files
with
27 additions
and
13 deletions
android/app/build.gradle
android/build.gradle
| 1 | 1 | buildscript { |
| 2 | 2 | ext.kotlin_version = '1.8.21' |
| 3 | 3 | repositories { |
| 4 | + maven { url 'https://maven.aliyun.com/repository/google' } | |
| 5 | + maven { url "https://maven.aliyun.com/repository/public" } | |
| 6 | + maven { url 'https://jitpack.io' } | |
| 7 | +// maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } | |
| 4 | 8 | google() |
| 5 | 9 | mavenCentral() |
| 6 | 10 | } |
| ... | ... | @@ -14,6 +18,10 @@ buildscript { |
| 14 | 18 | |
| 15 | 19 | allprojects { |
| 16 | 20 | repositories { |
| 21 | + maven { url 'https://maven.aliyun.com/repository/google' } | |
| 22 | + maven { url "https://maven.aliyun.com/repository/public" } | |
| 23 | + maven { url 'https://jitpack.io' } | |
| 24 | +// maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } | |
| 17 | 25 | google() |
| 18 | 26 | mavenCentral() |
| 19 | 27 | maven { url 'https://repo.singsound.com/repository/singsound_ginger_android_sdk/' } | ... | ... |
lib/pages/home/widgets/BaseHomeHeaderWidget.dart
| ... | ... | @@ -79,18 +79,24 @@ class BaseHomeHeaderWidget extends StatelessWidget { |
| 79 | 79 | style: TextStyle(color: Colors.white, fontSize: 30.0), |
| 80 | 80 | )), |
| 81 | 81 | Offstage( |
| 82 | - offstage: AppConfigHelper.shouldHidePay() || !UserUtil.isLogined(), | |
| 83 | - child: Row(children: <Widget>[ | |
| 84 | - Image( | |
| 85 | - width: 20.0.w, | |
| 86 | - height: 20.0.h, | |
| 87 | - image: AssetImage('ic_countdown'.assetPng)), | |
| 88 | - // 替换为你的图片资源路径 | |
| 89 | - const SizedBox(width: 10.0), | |
| 90 | - // 图片和文本之间的间隔 | |
| 91 | - Text('还剩${UserUtil.getRemainingValidity()}天'), | |
| 92 | - ]), | |
| 93 | - ), | |
| 82 | + offstage: AppConfigHelper.shouldHidePay() || | |
| 83 | + !UserUtil.isLogined(), | |
| 84 | + child: GestureDetector( | |
| 85 | + onTap: () => { | |
| 86 | + pushNamed(AppRouteName.shop), | |
| 87 | + }, | |
| 88 | + child: Row( | |
| 89 | + children: <Widget>[ | |
| 90 | + Image( | |
| 91 | + width: 20.0.w, | |
| 92 | + height: 20.0.h, | |
| 93 | + image: AssetImage('ic_countdown'.assetPng)), | |
| 94 | + // 替换为你的图片资源路径 | |
| 95 | + const SizedBox(width: 6.0), | |
| 96 | + // 图片和文本之间的间隔 | |
| 97 | + Text('还剩${UserUtil.getRemainingValidity()}天'), | |
| 98 | + ]), | |
| 99 | + )), | |
| 94 | 100 | ScreenUtil().bottomBarHeight.horizontalSpace, |
| 95 | 101 | ], |
| 96 | 102 | )); | ... | ... |