fix: 调整mac和win的初始尺寸,固定初始化尺寸

This commit is contained in:
2026-01-19 07:31:15 -08:00
parent 8e48a6ff8a
commit d89e8782e6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ import window_manager
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController()
let windowFrame = self.frame
var windowFrame = self.frame
windowFrame.size = NSSize(width: 375, height: 800)
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)