chore: 批量整理优化项目代码与配置
- 新增模型目录占位文件与翻译类型拆分 - 调整路由配置与桌面端窗口初始化 - 移除多处冗余图表配置项 - 重构右侧面板注册表与三栏布局组件 - 添加智能AppBar、拖拽书签等新功能组件 - 优化安卓编译配置与多平台插件注册 - 新增翻译覆盖率测试与共享组件 - 格式化代码与修复静态分析警告
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// ============================================================
|
||||
// 闲言APP — 应用入口
|
||||
// 创建时间: 2026-04-20
|
||||
// 更新时间: 2026-05-25
|
||||
// 更新时间: 2026-05-29
|
||||
// 作用: main 函数,初始化存储 + 液态玻璃 + 异常捕获 + 启动 App
|
||||
// 上次更新: 集成CrashMonitor+BackgroundTaskService+ConnectivityService初始化
|
||||
// 上次更新: 集成bitsdojo_window桌面端自定义标题栏+窗口控制
|
||||
// ============================================================
|
||||
|
||||
import 'dart:async';
|
||||
@@ -14,6 +14,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:liquid_glass_widgets/liquid_glass_widgets.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:bitsdojo_window/bitsdojo_window.dart';
|
||||
|
||||
import 'app/app.dart';
|
||||
import 'core/services/network/connectivity_service.dart';
|
||||
@@ -52,6 +53,14 @@ void main() async {
|
||||
() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
if (pu.isDesktop) {
|
||||
doWhenWindowReady(() {
|
||||
appWindow.minSize = const Size(400, 600);
|
||||
appWindow.title = '闲言';
|
||||
appWindow.show();
|
||||
});
|
||||
}
|
||||
|
||||
if (pu.isOhos) Log.i('🟢 [OHOS] main() 开始执行');
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) {
|
||||
|
||||
Reference in New Issue
Block a user