fix: 调整mac和win的初始尺寸,固定初始化尺寸
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user