feat:增加消息功能

This commit is contained in:
2026-06-18 14:20:37 +08:00
parent b816cdbc1c
commit bb1160ad18
7 changed files with 76 additions and 53 deletions

View File

@@ -3,9 +3,6 @@ import 'package:fluttertoast/fluttertoast.dart';
import 'package:liquid_glass_widgets/liquid_glass_widgets.dart';
import 'package:sweet_chat_app/apis/auth_api.dart';
import 'package:sweet_chat_app/utils/SpUtil.dart';
import 'package:web_socket_channel/web_socket_channel.dart';
import '../services/webSocket_service.dart';
import 'home_page.dart';
class LoginPage extends StatefulWidget {
@@ -71,10 +68,11 @@ class _LoginPageState extends State<LoginPage> {
),
const SizedBox(height: 24),
// 邮箱
// 用户名
TextField(
controller: _usernameController,
style: const TextStyle(color: Colors.white),
cursorColor: Colors.white,
decoration: InputDecoration(
hintText: '请输入用户名',
hintStyle: TextStyle(color: Colors.white70),
@@ -94,6 +92,7 @@ class _LoginPageState extends State<LoginPage> {
controller: _passwordController,
obscureText: true,
style: const TextStyle(color: Colors.white),
cursorColor: Colors.white,
decoration: InputDecoration(
hintText: '请输入密码',
hintStyle: TextStyle(color: Colors.white70),