reset_psd_state.dart 1005 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:flutter/material.dart';
  2. import 'package:plugin_basic/basic_export.dart';
  3. class ResetPasswordState {
  4. //表单的校验与数据
  5. Map<String, Map<String, dynamic>> formData = {
  6. 'old_password': {
  7. 'value': '',
  8. 'controller': TextEditingController(),
  9. 'focusNode': FocusNode(),
  10. 'hintText': 'Please enter your password'.tr,
  11. 'obsecure': true,
  12. },
  13. 'new_password': {
  14. 'value': '',
  15. 'controller': TextEditingController(),
  16. 'focusNode': FocusNode(),
  17. 'hintText': 'Please enter your new password'.tr,
  18. 'obsecure': true,
  19. },
  20. 'confirm_password': {
  21. 'value': '',
  22. 'controller': TextEditingController(),
  23. 'focusNode': FocusNode(),
  24. 'hintText': 'Please enter confirm password'.tr,
  25. 'obsecure': true,
  26. },
  27. };
  28. //表单的错误信息展示
  29. String? passwordErrorText;
  30. String? confirmPasswordErrorText;
  31. //待提交的数据
  32. String? oldPassword;
  33. String? password;
  34. String? confirmPassword;
  35. }