21 lines
537 B
Swift
21 lines
537 B
Swift
import Cocoa
|
|
import FlutterMacOS
|
|
import bitsdojo_window_macos
|
|
|
|
class MainFlutterWindow: BitsdojoWindow {
|
|
override func awakeFromNib() {
|
|
let flutterViewController = FlutterViewController.init()
|
|
let windowFrame = self.frame
|
|
self.contentViewController = flutterViewController
|
|
self.setFrame(windowFrame, display: true)
|
|
|
|
RegisterGeneratedPlugins(registry: flutterViewController)
|
|
|
|
super.awakeFromNib()
|
|
}
|
|
|
|
override func bitsdojo_window_configure() -> UInt {
|
|
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
|
|
}
|
|
}
|