123456789101112131415161718192021222324252627282930313233343536373839 |
- import 'package:flutter/material.dart';
- import 'package:plugin_basic/basic_export.dart';
- class ResetPasswordState {
- //表单的校验与数据
- Map<String, Map<String, dynamic>> formData = {
- 'old_password': {
- 'value': '',
- 'controller': TextEditingController(),
- 'focusNode': FocusNode(),
- 'hintText': 'Please enter your password'.tr,
- 'obsecure': true,
- },
- 'new_password': {
- 'value': '',
- 'controller': TextEditingController(),
- 'focusNode': FocusNode(),
- 'hintText': 'Please enter your new password'.tr,
- 'obsecure': true,
- },
- 'confirm_password': {
- 'value': '',
- 'controller': TextEditingController(),
- 'focusNode': FocusNode(),
- 'hintText': 'Please enter confirm password'.tr,
- 'obsecure': true,
- },
- };
- //表单的错误信息展示
- String? passwordErrorText;
- String? confirmPasswordErrorText;
- //待提交的数据
- String? oldPassword;
- String? password;
- String? confirmPassword;
- }
|