25 lines
856 B
Dart
Executable File
25 lines
856 B
Dart
Executable File
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
class MinePersonInfoResetPasswordState {
|
|
final TextEditingController oldPwdController = TextEditingController();
|
|
final TextEditingController newPwdController = TextEditingController();
|
|
final TextEditingController surePwdController = TextEditingController();
|
|
|
|
static int currentTimeMillis() {
|
|
return DateTime.now().millisecondsSinceEpoch;
|
|
}
|
|
|
|
RxString oldPwd = ''.obs;
|
|
RxString newPwd = ''.obs;
|
|
RxString surePwd = ''.obs;
|
|
RxBool canSub = false.obs;
|
|
RxString date = currentTimeMillis().toString().obs;
|
|
|
|
bool get oldPwdIsOK => oldPwd.value.isNotEmpty && oldPwd.value.length >= 8;
|
|
bool get newPwdIsOK => newPwd.value.isNotEmpty && newPwd.value.length >= 8;
|
|
bool get surePwdIsOK => surePwd.value.isNotEmpty && surePwd.value.length >= 8;
|
|
|
|
void onClose() {}
|
|
}
|