1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2025-11-09 04:58:58 +00:00

New Example - Platform Adaptive Example (#121)

* Adding Platform Adaptive Example

* Adding screenshots
This commit is contained in:
Bryce Cole
2022-10-22 14:13:07 -04:00
committed by GitHub
parent 1564ccdff2
commit b0d917b05a
131 changed files with 4475 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()
}
}