1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 06:18:49 +00:00

Add desktop runners (#892)

This commit is contained in:
Abdullah Deshmukh
2021-08-27 17:09:10 -07:00
committed by GitHub
parent 79c7cc70a5
commit 912418be86
65 changed files with 2944 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}