更新密码输入居中

This commit is contained in:
wyf
2025-07-23 16:11:35 +08:00
parent 528e3323cb
commit 3632c16fdf

View File

@@ -537,7 +537,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
}, },
obscureText: controller obscureText: controller
.model .model
.pdshow!, // 根据 pdshow 控制是否隐藏密码 .pdshow!, // 根据 cpdshow 控制是否隐藏密码
decoration: decoration:
InputDecoration( InputDecoration(
hintText: "请输入新密码".tr, hintText: "请输入新密码".tr,
@@ -613,14 +613,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
EdgeInsetsDirectional EdgeInsetsDirectional
.fromSTEB( .fromSTEB(
8, 8,
8, 6,
0, 0,
0), // 调整底部填充 0), // 调整底部填充以适应新的高度
suffixIcon: suffixIcon:
IconButton( IconButton(
icon: Icon( icon: Icon(
controller.model controller.model
.pdshow! .cpdshow!
? Icons ? Icons
.visibility_off .visibility_off
: Icons : Icons
@@ -630,6 +630,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
size: 16, size: 16,
), ),
onPressed: () { onPressed: () {
// 切换 cpdshow 状态
controller.model controller.model
.pdshow = .pdshow =
!controller !controller