- 添加 .gitignore 文件,配置项目忽略项 - 创建 .metadata 文件,记录项目元数据 - 编写 README.md,介绍项目基本信息 - 配置 analysis_options.yaml,设置代码分析规则 - 新增 Android 相关文件和目录,包括 Gradle 配置、资源文件等 - 新增 iOS 相关文件和目录,包括 AppFrameworkInfo.plist、Debug.xcconfig 等
16 lines
388 B
Swift
16 lines
388 B
Swift
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()
|
|
}
|
|
}
|