trust_wallet_core 0.0.2 copy "trust_wallet_core: ^0.0.2" to clipboard
trust_wallet_core: ^0.0.2 copied to clipboard

outdated

A Flutter plugin for trust wallet core

trust_wallet_core #

A Flutter plugin for trust wallet core

download pre_release lib zip from release. Run example, If crash, make sure follow below step

Android #

Add

class MainActivity: FlutterActivity() {
    init {
        System.loadLibrary("TrustWalletCore")
    }
}

in your android project MainActivity.ky file

your project file structs will look like this

截屏2021-09-16 上午10 26 10

then you are ready to run.

If want to use plugin in your own project #

Current there is a way will be easy

Just add follow dep in your pubspec.yaml file, flutter_trust_wallet_core_lib_include.git was check binary lib into repo.

flutter_trust_wallet_core:
    git:
      url: https://github.com/weishirongzhen/flutter_trust_wallet_core_lib_include.git
      ref: 8e371e1aadcf06f2d1ce44fb3036a36395d1f095

make sure ref is newest, then run flutter pub get

edit you android MainACtivity.kt file

class MainActivity: FlutterActivity() {
    init {
        System.loadLibrary("TrustWalletCore")
    }
}

ios nothing need todo.

dart part #

before use wallet_core, add

 FlutterTrustWalletCore.init();

before call any api of wallet_core

13
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for trust wallet core

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, fixnum, flutter, protobuf

More

Packages that depend on trust_wallet_core

Packages that implement trust_wallet_core