Tezsure / Tezster_dart

Dart kit for Tezos to build applications using flutter framework.
GNU Affero General Public License v3.0
24 stars 13 forks source link

Solved the ffi issue #27

Closed SushantChandla closed 3 years ago

SushantChandla commented 3 years ago

Updated the lib sodium plugin to fix this issue

Logs ``` ../../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'. - 'Utf8' is from 'package:ffi/src/utf8.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String toString() => fromUtf8(addressOf); ^^^^^^^^^ ../../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior. class Utf8 extends Struct { ^ ../../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior. class Utf16 extends Struct { ^ ../../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'. final int totalSize = count * sizeOf(); ^ ```