alroyso 1 year ago
parent
commit
9b478f7d66
3 changed files with 51 additions and 0 deletions
  1. BIN
      images/login/bgbutton.png
  2. 50 0
      lib/app/pages/login/login.dart
  3. 1 0
      pubspec.yaml

BIN
images/login/bgbutton.png


+ 50 - 0
lib/app/pages/login/login.dart

@@ -1,3 +1,4 @@
+import 'package:flutter/cupertino.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_modular/flutter_modular.dart';
 
@@ -20,6 +21,55 @@ class _LoginPageState extends State<LoginPage> {
             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
+                  ),
+                )
+              ],
+            ),
+          ),
+
+        ),
       ),
     );
 

+ 1 - 0
pubspec.yaml

@@ -62,6 +62,7 @@ flutter:
 
   assets:
     - images/login/login.png
+    - images/login/bgbutton.png
   # To add assets to your application, add an assets section, like this:
   # assets:
   #   - images/a_dot_burr.jpeg