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:
@@ -292,7 +292,7 @@ class Platform {
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.name();
|
||||
return result;
|
||||
return result.toNativeUtf8();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
|
||||
Reference in New Issue
Block a user