fix: linux syn

This commit is contained in:
Kingtous 2023-02-18 19:10:08 +08:00
parent 0f59fef831
commit 3e42db31d1
5 changed files with 111 additions and 37 deletions

View file

@ -41,8 +41,7 @@ class MethodChannelTextureRgbaRenderer extends TextureRgbaRendererPlatform {
@override
Future<int> getTexturePtr(int key) async {
// TODO: currently only supports Windows.
if (!Platform.isWindows) {
if (Platform.isMacOS) {
return -1;
}
final ptr =