1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| Widget _buildPasswordForm() { return <Widget>[ TextFormWidget( isObscure: true, keyboardType: TextInputType.visiblePassword, controller: controller.oldPasswordController, labelText: LocaleKeys.profileEditOldPassword.tr, hintText: LocaleKeys.profileEditPasswordTip.tr, validator: Validatorless.multiple([ Validatorless.min( 3, "Length cannot be less than @size".trParams({"size": "3"})), Validatorless.max(18, "Length cannot be greater than @size".trParams({"size": "18"})), ]), ),
TextFormWidget( isObscure: true, keyboardType: TextInputType.visiblePassword, controller: controller.newPasswordController, labelText: LocaleKeys.profileEditNewPassword.tr, hintText: LocaleKeys.profileEditPasswordTip.tr, validator: Validatorless.multiple([ Validatorless.min( 3, "Length cannot be less than @size".trParams({"size": "3"})), Validatorless.max(18, "Length cannot be greater than @size".trParams({"size": "18"})), ]), ),
TextFormWidget( isObscure: true, keyboardType: TextInputType.visiblePassword, controller: controller.confirmNewPasswordController, labelText: LocaleKeys.profileEditConfirmPassword.tr, hintText: LocaleKeys.profileEditPasswordTip.tr, validator: Validatorless.multiple([ Validatorless.min( 3, "Length cannot be less than @size".trParams({"size": "3"})), Validatorless.max(18, "Length cannot be greater than @size".trParams({"size": "18"})), ]), ),
].toColumn().paddingAll(AppSpace.card).card(); }
|