diff --git a/android/app/build.gradle b/android/app/build.gradle index 92f2904..27c2f34 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -94,5 +94,5 @@ dependencies { // kotlin扩展(可选) implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2' // coco2d游戏 - implementation 'io.keyss.android.library:steve_game:1.0.0' + implementation 'io.keyss.android.library:steve_game:1.0.1' } diff --git a/android/build.gradle b/android/build.gradle index 482dae9..42499bb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,10 @@ buildscript { ext.kotlin_version = '1.8.21' repositories { + maven { url 'https://maven.aliyun.com/repository/google' } + maven { url "https://maven.aliyun.com/repository/public" } + maven { url 'https://jitpack.io' } +// maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } google() mavenCentral() } @@ -14,6 +18,10 @@ buildscript { allprojects { repositories { + maven { url 'https://maven.aliyun.com/repository/google' } + maven { url "https://maven.aliyun.com/repository/public" } + maven { url 'https://jitpack.io' } +// maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } google() mavenCentral() maven { url 'https://repo.singsound.com/repository/singsound_ginger_android_sdk/' } diff --git a/lib/pages/home/widgets/BaseHomeHeaderWidget.dart b/lib/pages/home/widgets/BaseHomeHeaderWidget.dart index 28ad771..8d4795b 100644 --- a/lib/pages/home/widgets/BaseHomeHeaderWidget.dart +++ b/lib/pages/home/widgets/BaseHomeHeaderWidget.dart @@ -79,18 +79,24 @@ class BaseHomeHeaderWidget extends StatelessWidget { style: TextStyle(color: Colors.white, fontSize: 30.0), )), Offstage( - offstage: AppConfigHelper.shouldHidePay() || !UserUtil.isLogined(), - child: Row(children: [ - Image( - width: 20.0.w, - height: 20.0.h, - image: AssetImage('ic_countdown'.assetPng)), - // 替换为你的图片资源路径 - const SizedBox(width: 10.0), - // 图片和文本之间的间隔 - Text('还剩${UserUtil.getRemainingValidity()}天'), - ]), - ), + offstage: AppConfigHelper.shouldHidePay() || + !UserUtil.isLogined(), + child: GestureDetector( + onTap: () => { + pushNamed(AppRouteName.shop), + }, + child: Row( + children: [ + Image( + width: 20.0.w, + height: 20.0.h, + image: AssetImage('ic_countdown'.assetPng)), + // 替换为你的图片资源路径 + const SizedBox(width: 6.0), + // 图片和文本之间的间隔 + Text('还剩${UserUtil.getRemainingValidity()}天'), + ]), + )), ScreenUtil().bottomBarHeight.horizontalSpace, ], ));