1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter_modular/flutter_modular.dart';
- class LoginPage extends StatefulWidget {
- const LoginPage({super.key});
- @override
- State<LoginPage> createState() => _LoginPageState();
- }
- class _LoginPageState extends State<LoginPage> {
- // final width = 375.0;
- // final height = 680.0;
- @override
- Widget build(BuildContext context) {
- // TODO: implement build
- return Container(
- decoration: const BoxDecoration(
- image: DecorationImage(
- image: AssetImage("images/login/login.png"),
- fit: BoxFit.fill,
- )),
- child: const Text("11111"),
- );
- }
- }
- // Padding(
- // padding: const EdgeInsets.fromLTRB(20, 20, 20, 20),
- // child: Form(
- // child: SingleChildScrollView(
- // physics: const NeverScrollableScrollPhysics(), // 禁用滚动
- // child: Align(
- // alignment: Alignment.center,
- // child: Column(
- // mainAxisAlignment: MainAxisAlignment.center,
- // mainAxisSize: MainAxisSize.min, // 设置为最小
- // children: [
- // const SizedBox(
- // width: 200,
- // height: 200,
- // ),
- // Padding(
- // padding: const EdgeInsets.fromLTRB(40, 40, 0, 0),
- // child: TextFormField(
- // decoration: const InputDecoration(
- // border: InputBorder.none,
- // labelText: "输入账号",
- // hintText: "输入账号",
- // ),
- // ),
- // ),
- // Padding(
- // padding: const EdgeInsets.fromLTRB(40, 10, 0, 0),
- // child: TextFormField(
- // decoration: const InputDecoration(
- // border: InputBorder.none,
- // labelText: "输入密码",
- // hintText: "输入密码",
- // ),
- // ),
- // ),
- // const SizedBox(
- // width: 200,
- // height: 50,
- // ),
- // Container(
- // width: 150,
- // height: 40,
- // child: ElevatedButton(
- // onPressed: () {
- // Modular.to.navigate("/home/main");
- // },
- // child: const Text("登录"),
- // ),
- // )
- // ],
- // ),
- // ),
- // ),
- // ),
- // ),
|