chore: add flutter quickstart example, assets and update README

This commit is contained in:
Nick Fisher
2024-10-22 13:11:48 +08:00
parent 6dc00bff74
commit ed44aad076
177 changed files with 17803 additions and 46 deletions

View File

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