Browse Source

权限框架回退到旧版本,会导致无法编译的问题需要升级 Gradle

修改隐藏密码的逻辑判断
liukai 6 days ago
parent
commit
e5ed38704e

+ 4 - 0
melos.yaml

@@ -115,6 +115,10 @@ scripts:
     run: cd "$MELOS_ROOT_PATH/app" && flutter build apk
     description: 编译安卓Release的APK格式安装包.
 
+  build_aab:
+    run: cd "$MELOS_ROOT_PATH/app" && flutter build appbundle
+    description: 编译安卓Release的APK格式安装包.
+
   resource_get:
     run: |
       cd "$MELOS_ROOT_PATH/packages/cs_domain/" && flutter pub get

+ 1 - 1
packages/cpt_auth/lib/modules/auth_login/auth_login_page.dart

@@ -116,7 +116,7 @@ class AuthLoginPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.pwdVisibility
+                  icon: !state.pwdVisibility
                       ? const MyAssetImage(
                           Assets.authPasswordHide,
                           width: 22.5,

+ 2 - 2
packages/cpt_auth/lib/modules/forgot_verify/forgot_verify_page.dart

@@ -112,7 +112,7 @@ class ForgotVerifyPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.pwdVisibility
+                  icon: !state.pwdVisibility
                       ? const MyAssetImage(
                           Assets.authPasswordHide,
                           width: 22.5,
@@ -145,7 +145,7 @@ class ForgotVerifyPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.confirmPwdVisibility
+                  icon: !state.confirmPwdVisibility
                       ? const MyAssetImage(
                           Assets.authPasswordHide,
                           width: 22.5,

+ 2 - 2
packages/cpt_auth/lib/modules/sign_up/sign_up_page.dart

@@ -147,7 +147,7 @@ class SignUpPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.pwdVisibility
+                  icon: !state.pwdVisibility
                       ? const MyAssetImage(
                           Assets.authPasswordHide,
                           width: 22.5,
@@ -180,7 +180,7 @@ class SignUpPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.confirmPwdVisibility
+                  icon: !state.confirmPwdVisibility
                       ? const MyAssetImage(
                           Assets.authPasswordHide,
                           width: 22.5,

+ 2 - 2
packages/cpt_profile/lib/modules/reset_password/reset_password_page.dart

@@ -149,7 +149,7 @@ class ResetPasswordPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.pwdVisibility
+                  icon: !state.pwdVisibility
                       ? const MyAssetImage(
                     Assets.authPasswordHide,
                     width: 22.5,
@@ -191,7 +191,7 @@ class ResetPasswordPage extends HookConsumerWidget {
                 rightWidget: IconButton(
                   highlightColor: Colors.transparent,
                   splashColor: Colors.transparent,
-                  icon: state.confirmPwdVisibility
+                  icon: !state.confirmPwdVisibility
                       ? const MyAssetImage(
                     Assets.authPasswordHide,
                     width: 22.5,

+ 1 - 1
packages/cs_plugin_platform/pubspec.yaml

@@ -35,7 +35,7 @@ dependencies:
   dio: 5.3.3
 
   #处理权限
-  permission_handler: 12.0.0+1
+  permission_handler: 11.3.1
 
   # 图片选择  https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/main/README-ZH.md
   wechat_assets_picker: ^9.2.2