jianboy 1 year ago
parent
commit
be3d9d64a1
4 changed files with 9 additions and 14 deletions
  1. 0 2
      lib/driver/driver_robot.dart
  2. 2 4
      lib/pages/about_me_page.dart
  3. 7 7
      lib/pages/login_page.dart
  4. 0 1
      lib/routes.dart

+ 0 - 2
lib/driver/driver_robot.dart

@@ -416,7 +416,6 @@ class DriverRobot extends PlayerDriver {
 
   @override
   Future<String> ponder() {
-    // TODO: implement ponder
     throw UnimplementedError();
   }
 
@@ -429,7 +428,6 @@ class DriverRobot extends PlayerDriver {
 
   @override
   Future<bool> tryRetract() {
-    // TODO: implement tryRetract
     throw UnimplementedError();
   }
 }

+ 2 - 4
lib/pages/about_me_page.dart

@@ -16,12 +16,10 @@ class _AboutMePageState extends State<AboutMePage> {
     return Scaffold(
       appBar: AppBar(actions: [
         IconButton(
-          icon: Icon(Icons.logout),
+          icon: const Icon(Icons.logout),
           onPressed: () {},
         )
       ]),
-      body: Container(
-        child: const Text("about me page"),
-      ),);
+      body: const Text("about me page"),);
   }
 }

+ 7 - 7
lib/pages/login_page.dart

@@ -19,14 +19,14 @@ class _LoginPageState extends State<LoginPage> {
           Image.asset("assets/images/bg.png"),
           Column(
             children: [
-              Text("用户名:"),
+              const Text("用户名:"),
+              const TextField(),
+              const Text("密码:"),
               TextField(),
-              Text("密码:"),
-              TextField(),
-              TextButton(onPressed: login, child: Text("登录")),
-              TextButton(onPressed: register, child: Text("注册")),
-              TextButton(onPressed: withoutLogin, child: Text("游客")),
-              TextButton(onPressed: back, child: Text("返回")),
+              TextButton(onPressed: login, child: const Text("登录")),
+              TextButton(onPressed: register, child: const Text("注册")),
+              TextButton(onPressed: withoutLogin, child: const Text("游客")),
+              TextButton(onPressed: back, child: const Text("返回")),
             ],
           )
         ],

+ 0 - 1
lib/routes.dart

@@ -1,5 +1,4 @@
 import 'package:flutter/material.dart';
-import 'package:flutter_chinese_chees/pages/home_page.dart';
 import 'package:flutter_chinese_chees/pages/login_page.dart';
 import 'package:flutter_chinese_chees/pages/register_page.dart';
 import 'package:flutter_chinese_chees/pages/splash_page.dart';