You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
748 B
30 lines
748 B
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import 'controller.dart';
|
|
import './widget/index.dart';
|
|
|
|
class LoginPage extends GetView<LoginController> {
|
|
const LoginPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: SafeArea(
|
|
child: ListView(
|
|
children: <Widget>[
|
|
const Logo(),
|
|
Obx(() => LoginForm(
|
|
state: controller.state,
|
|
onSubmit: controller.login,
|
|
onPwdVisiable: controller.changePwdVisiable,
|
|
)),
|
|
const SizedBox(height: 10),
|
|
Obx(() => LoginExternal(
|
|
state: controller.state,
|
|
)),
|
|
],
|
|
)),
|
|
);
|
|
}
|
|
}
|