This is a Dart SDK for the Ontology blockchain and could be used in the Flutter development.
For using this package in your project you'd firstly update your
pubspec.yaml file to contains blew lines:
dependencies: ontology_dart_sdk: ^1.0.0
and then run the package installation command:
flutter packages get
Testing in flutter is interesting, our test code and business code run in two separate processes. The test code takes screen captures of the running business code to perform further predicate code. For more details under this mechanism please refer integration testing.
Here are the steps to start the tests:
ontology version v1.6.0-8-g754303c0
wallet.datthen put the saved wallet file and the Ontology binary from step 1 under the same directory.
./ontology --testmode --loglevel=1
cd example/ && flutter drive --target=test_driver/app.dart
Below is a screenshot from tests:
Demonstrates how to use the ontology_dart_sdk plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: ontology_dart_sdk: ^1.0.3
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:ontology_dart_sdk/common.dart'; import 'package:ontology_dart_sdk/crypto.dart'; import 'package:ontology_dart_sdk/neocore.dart'; import 'package:ontology_dart_sdk/network.dart'; import 'package:ontology_dart_sdk/settings.dart'; import 'package:ontology_dart_sdk/wallet.dart';
|1.0.3||Mar 14, 2019|
|1.0.2||Mar 1, 2019|
|1.0.1||Mar 1, 2019|
|1.0.0||Mar 1, 2019|
|0.0.1||Mar 1, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Mar 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Document public APIs. (-0.92 points)
753 out of 755 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
|Dart SDK||>=2.1.0-dev.9.4 <3.0.0|