feat: init repo

This commit is contained in:
Kingtous 2023-02-16 15:03:12 +08:00
commit b2bd5910e7
87 changed files with 4335 additions and 0 deletions

View file

@ -0,0 +1,19 @@
import Cocoa
import FlutterMacOS
public class TextureRgbaRendererPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "texture_rgba_renderer", binaryMessenger: registrar.messenger)
let instance = TextureRgbaRendererPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
switch call.method {
case "getPlatformVersion":
result("macOS " + ProcessInfo.processInfo.operatingSystemVersionString)
default:
result(FlutterMethodNotImplemented)
}
}
}