flutter: Fix Platform::name_calledFromC()

The return type needs to be ffi.Pointer<Utf8>, not String.
This has been fixed in dartagnan
This commit is contained in:
Sergio Martins
2022-07-23 18:44:20 +01:00
parent 9b7eaebd40
commit 7956ec3b73

View File

@@ -292,7 +292,7 @@ class Platform {
}
//tag=1037
final result = dartInstance.name();
return result;
return result.toNativeUtf8();
}
//tag=1024