Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
17 lines
479 B
Swift
17 lines
479 B
Swift
import Cocoa
|
|
import FlutterMacOS
|
|
import cutdex_native
|
|
|
|
class MainFlutterWindow: CutdexNativeWindow {
|
|
override func awakeFromNib() {
|
|
let controller = FlutterViewController()
|
|
let windowFrame = frame
|
|
contentViewController = controller
|
|
setFrame(windowFrame, display: true)
|
|
RegisterGeneratedPlugins(registry: controller)
|
|
(NSApp.delegate as? AppDelegate)?.configureLifecycle(
|
|
messenger: controller.engine.binaryMessenger)
|
|
super.awakeFromNib()
|
|
}
|
|
}
|