|
@@ -29,13 +29,13 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Widget buildLoginDesktop() {
|
|
Widget buildLoginDesktop() {
|
|
|
- return Row(
|
|
|
|
|
|
|
+ return const Row(
|
|
|
children: [
|
|
children: [
|
|
|
- const Expanded(child: LoginTop()),
|
|
|
|
|
|
|
+ Expanded(child: LoginTop()),
|
|
|
Expanded(
|
|
Expanded(
|
|
|
child: Row(
|
|
child: Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: const [
|
|
|
|
|
|
|
+ children: [
|
|
|
SizedBox(
|
|
SizedBox(
|
|
|
width: 450,
|
|
width: 450,
|
|
|
child: LoginForm(),
|
|
child: LoginForm(),
|
|
@@ -47,12 +47,12 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Widget buildLoginMobile() {
|
|
Widget buildLoginMobile() {
|
|
|
- return Column(
|
|
|
|
|
|
|
+ return const Column(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: [
|
|
children: [
|
|
|
- const LoginTop(),
|
|
|
|
|
|
|
+ LoginTop(),
|
|
|
Row(
|
|
Row(
|
|
|
- children: const [
|
|
|
|
|
|
|
+ children: [
|
|
|
Spacer(),
|
|
Spacer(),
|
|
|
Expanded(
|
|
Expanded(
|
|
|
flex: 8,
|
|
flex: 8,
|
|
@@ -107,7 +107,7 @@ class LoginForm extends StatelessWidget {
|
|
|
tag: "login_btn",
|
|
tag: "login_btn",
|
|
|
child: ElevatedButton(
|
|
child: ElevatedButton(
|
|
|
onPressed: () {},
|
|
onPressed: () {},
|
|
|
- child: Text(
|
|
|
|
|
|
|
+ child: const Text(
|
|
|
"登录",
|
|
"登录",
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|