123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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> {
- @override
- Widget build(BuildContext context) {
- // TODO: implement build
- return Scaffold(
- body: Container(
- decoration: const BoxDecoration(
- image: DecorationImage(
- image: AssetImage("images/login/login.png"),
- fit: BoxFit.fill,
- )
- ),
- child: Padding(
- padding: const EdgeInsets.fromLTRB(20, 20, 20, 20),
- child: Form(
- child: Column(
- children: [
- const SizedBox(
- width: 200,
- height: 200,
- ),
- Padding(
- padding: const EdgeInsets.fromLTRB(40, 30, 0, 0),
- child: TextFormField(
- decoration: const InputDecoration(
- border: InputBorder.none,
- labelText: "输入账号",
- hintText: "输入账号",
- ),
- ),
- ),
- Padding(
- padding: const EdgeInsets.fromLTRB(40, 0, 0, 0),
- child: TextFormField(
- decoration: const InputDecoration(
- border: InputBorder.none,
- labelText: "输入密码",
- hintText: "输入密码",
- ),
- ),
- ),
- const SizedBox(
- width: 200,
- height: 150,
- ),
- ElevatedButton(
- child: const Text("登录"),
- onPressed: (){
- },
- style: ButtonStyle(
- //minimumSize: Meta
- ),
- )
- ],
- ),
- ),
- ),
- ),
- );
- }
- }
|