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

Adding macos files, recreating android and ios to isolate_example. (#218)

This commit is contained in:
Brett Morgan
2020-01-10 09:45:09 +11:00
committed by GitHub
parent 3b61899119
commit 2ec96efca9
46 changed files with 1359 additions and 85 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()
}
}