change default macos window size

This commit is contained in:
Junyuan Feng
2022-01-09 23:11:51 +08:00
parent 5a706313f5
commit 516cec5565
5 changed files with 12 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
var windowFrame = self.frame
windowFrame.size = CGSize(width: 1080, height: 1920)
windowFrame.size = CGSize(width: 450, height: 800)
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)