2024-03-18 13:23:58 +08:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:sk_base_mobile/config.dart';
|
|
|
|
import '../../constants/enum.dart';
|
|
|
|
import '../../store/auth.store.dart';
|
|
|
|
import '../../util/util.dart';
|
|
|
|
|
|
|
|
class LoginController extends GetxController {
|
|
|
|
final isAgreeTerm = RxBool(false);
|
2024-03-18 15:54:06 +08:00
|
|
|
final formKey = GlobalKey<FormState>();
|
|
|
|
final passwordFocusNode = FocusNode();
|
|
|
|
bool loading = false;
|
|
|
|
Future<void> doLogin() async {
|
|
|
|
if (!formKey.currentState!.validate()) {
|
|
|
|
return;
|
|
|
|
}
|
2024-03-18 13:23:58 +08:00
|
|
|
}
|
|
|
|
}
|