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