2024-11-08 16:09:46 +00:00
|
|
|
import Cocoa
|
|
|
|
import FlutterMacOS
|
|
|
|
|
2024-12-04 16:43:57 +00:00
|
|
|
import bitsdojo_window_macos
|
|
|
|
|
|
|
|
class MainFlutterWindow: BitsdojoWindow {
|
|
|
|
override func bitsdojo_window_configure() -> UInt {
|
|
|
|
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
|
|
|
|
}
|
|
|
|
|
2024-11-08 16:09:46 +00:00
|
|
|
override func awakeFromNib() {
|
|
|
|
let flutterViewController = FlutterViewController()
|
|
|
|
let windowFrame = self.frame
|
|
|
|
self.contentViewController = flutterViewController
|
|
|
|
self.setFrame(windowFrame, display: true)
|
|
|
|
|
|
|
|
RegisterGeneratedPlugins(registry: flutterViewController)
|
|
|
|
|
|
|
|
super.awakeFromNib()
|
|
|
|
}
|
|
|
|
}
|