reef_chain_flutter 0.0.5 copy "reef_chain_flutter: ^0.0.5" to clipboard
reef_chain_flutter: ^0.0.5 copied to clipboard

Reef chain Dart calls for easy Flutter integration.

Features #

Exposed Dart Classes for easy flutter integration with Reef chain

Getting started #

Add dependency to pubscpek.yaml, copy lib/js/packages/reef-mobile-js/dist/index.js to your app under same path and add this .js file to assets in pubspeck.yaml

Usage #


import 'package:reef_chain_flutter/reef_chain_flutter.dart';

final JsApiService reefJsApiService = JsApiService.reefAppJsApi(onErrorCb: (){
  debugPrint('JS CONNECTION ERROR');
});

widget.reefJsApiService.jsCall("window.isJsConn()").then((v)=>debugPrint(v.toString()));
widget.reefJsApiService.jsPromise("window.futureFn(\"fltrrr\")").then((v)=>debugPrint(v.toString()));
widget.reefJsApiService.jsObservable("window.testObs()").listen((v)=>debugPrint(v.toString()));

Example App Repo #

https://github.com/reef-chain/reef-flutter-lib-example-app

0
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Reef chain Dart calls for easy Flutter integration.

License

unknown (license)

Dependencies

flutter, rxdart, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on reef_chain_flutter