1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-06 19:52:04 +00:00

update android and ios, add macos and web (#237)

This commit is contained in:
Brett Morgan
2020-01-15 04:32:14 +10:00
committed by GitHub
parent 676698aa83
commit 1d4848ab2d
58 changed files with 1722 additions and 267 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()
}
}