|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
import 'package:cpt_auth/modules/sign_up/sign_up_state.dart';
|
|
|
import 'package:cs_resources/generated/assets.dart';
|
|
|
import 'package:cs_resources/generated/l10n.dart';
|
|
@@ -124,7 +123,6 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
context,
|
|
|
state,
|
|
|
"phone",
|
|
|
- marginTop: 15,
|
|
|
textInputType: TextInputType.number,
|
|
|
textInputAction: TextInputAction.next,
|
|
|
errorText: state.phoneErrorText,
|
|
@@ -134,7 +132,7 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
},
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ),
|
|
|
+ ).marginOnly(top: 15),
|
|
|
|
|
|
// 表单 - 重置密码
|
|
|
_buildInputLayout(
|
|
@@ -151,15 +149,15 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
splashColor: Colors.transparent,
|
|
|
icon: state.pwdVisibility
|
|
|
? const MyAssetImage(
|
|
|
- Assets.authPasswordHide,
|
|
|
- width: 22.5,
|
|
|
- height: 16.5,
|
|
|
- )
|
|
|
+ Assets.authPasswordHide,
|
|
|
+ width: 22.5,
|
|
|
+ height: 16.5,
|
|
|
+ )
|
|
|
: const MyAssetImage(
|
|
|
- Assets.authPasswordShow,
|
|
|
- width: 22.5,
|
|
|
- height: 16.5,
|
|
|
- ),
|
|
|
+ Assets.authPasswordShow,
|
|
|
+ width: 22.5,
|
|
|
+ height: 16.5,
|
|
|
+ ),
|
|
|
onPressed: () {
|
|
|
viewModel.switchPwdVisibility();
|
|
|
},
|
|
@@ -184,15 +182,15 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
splashColor: Colors.transparent,
|
|
|
icon: state.confirmPwdVisibility
|
|
|
? const MyAssetImage(
|
|
|
- Assets.authPasswordHide,
|
|
|
- width: 22.5,
|
|
|
- height: 16.5,
|
|
|
- )
|
|
|
+ Assets.authPasswordHide,
|
|
|
+ width: 22.5,
|
|
|
+ height: 16.5,
|
|
|
+ )
|
|
|
: const MyAssetImage(
|
|
|
- Assets.authPasswordShow,
|
|
|
- width: 22.5,
|
|
|
- height: 16.5,
|
|
|
- ),
|
|
|
+ Assets.authPasswordShow,
|
|
|
+ width: 22.5,
|
|
|
+ height: 16.5,
|
|
|
+ ),
|
|
|
onPressed: () {
|
|
|
viewModel.switchConfirmPwdVisibility();
|
|
|
},
|
|
@@ -244,7 +242,6 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
),
|
|
|
],
|
|
|
).marginOnly(bottom: 35),
|
|
|
-
|
|
|
],
|
|
|
),
|
|
|
),
|
|
@@ -254,18 +251,18 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
|
|
|
/// 输入框
|
|
|
Widget _buildInputLayout(
|
|
|
- BuildContext context,
|
|
|
- SignUpState state,
|
|
|
- String key, {
|
|
|
- double marginTop = 0,
|
|
|
- bool? showRightIcon = false, //是否展示右侧的布局
|
|
|
- Widget? rightWidget, //右侧的布局
|
|
|
- TextInputType textInputType = TextInputType.text,
|
|
|
- String? errorText,
|
|
|
- bool obscureText = false,
|
|
|
- TextInputAction textInputAction = TextInputAction.done,
|
|
|
- Function? onSubmit,
|
|
|
- }) {
|
|
|
+ BuildContext context,
|
|
|
+ SignUpState state,
|
|
|
+ String key, {
|
|
|
+ double marginTop = 0,
|
|
|
+ bool? showRightIcon = false, //是否展示右侧的布局
|
|
|
+ Widget? rightWidget, //右侧的布局
|
|
|
+ TextInputType textInputType = TextInputType.text,
|
|
|
+ String? errorText,
|
|
|
+ bool obscureText = false,
|
|
|
+ TextInputAction textInputAction = TextInputAction.done,
|
|
|
+ Function? onSubmit,
|
|
|
+ }) {
|
|
|
return IgnoreKeyboardDismiss(
|
|
|
child: MyTextField(
|
|
|
key,
|
|
@@ -300,5 +297,4 @@ class SignUpPage extends HookConsumerWidget {
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
-
|
|
|
}
|