修复版本管理整包更新无法弹出的问题
完成集成新的登录接口的更换使用 完成集成用户的场站列表接口 完成开发设计选择场站项为全局属性 完成我的页面的个人信息的集成和详情页面的开发 完成设备页面的中无人机机场的列表接口对接入和个项页面的布局的优化 完成设备页面的中无人机机场的详情接口的对接和使用和页面的更新布局
This commit is contained in:
@@ -38,8 +38,11 @@ class _LoginPageState extends State<LoginPage> {
|
||||
appBar: AppBar(backgroundColor: Colors.white, elevation: 0),
|
||||
body: BlocListener<LoginCubit, LoginState>(
|
||||
listener: (context, state) {
|
||||
debugPrint('🔍 [LOGIN] 登录状态变化: $state');
|
||||
if (state is LoginSuccess) {
|
||||
debugPrint('✅ [LOGIN] 登录成功,准备跳转到首页');
|
||||
context.go(RoutePaths.home);
|
||||
debugPrint('✅ [LOGIN] 已调用 context.go(RoutePaths.home)');
|
||||
} else if (state is LoginFailure) {
|
||||
// 可以在这里弹出简洁的黑白提示框
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('登录失败,${state.message}')));
|
||||
@@ -89,7 +92,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
|
||||
const SizedBox(height: 16),
|
||||
const Text(
|
||||
"账号登录v1.1.4",
|
||||
"账号登录v1.1.5",
|
||||
style: TextStyle(fontSize: 28, fontWeight: FontWeight.bold, color: Colors.brown),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
Reference in New Issue
Block a user