feat(desktop): 增加桌面端系统托盘和窗口管理功能
- 主函数中添加窗口管理初始化,支持Windows、Linux和MacOS平台 - HomeScreen中集成托盘服务和窗口服务,实现托盘菜单交互 - 实现窗口关闭时弹出对话框,支持最小化到托盘或退出程序 - 添加托盘服务TrayService,封装系统托盘图标和菜单的初始化、事件处理 - 添加窗口服务WindowService,实现窗口的显示、隐藏、关闭及事件监听 - 在界面添加最小化到托盘的按钮,仅桌面端显示 - pubspec.yaml添加assets目录,包含托盘图标资源文件
This commit is contained in:
@@ -80,10 +80,9 @@ flutter:
|
||||
# the material Icons class.
|
||||
uses-material-design: true
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
# 资源文件
|
||||
assets:
|
||||
- assets/
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/to/resolution-aware-images
|
||||
|
||||
Reference in New Issue
Block a user