A Flutter/Dart Steem client library. This library includes support for authentication (SteemConnect V2) as well as Broadcasting (vote, comment, follow ++) and data retrieval (using SteemJS to get followers, posts by users, users ++) .
If you already have an access token, you can authenticate a client.
user property of the
SteemClient will be
var client = SteemApiAuth.authorizeViaAccessToken('<access-token>'); var me = await client.users.self.get();
To perform authentication, use the
SteemApiAuth class. All API scopes are
SteemApiScope constants for convenience.
var auth = new SteemApiAuth('<client-id>', '<client-secret>', redirectUri: Uri.parse('<redirect-uri>'), scopes: [ SteemApiScope.login, SteemApiScope.vote, // ... ] );
Applications with no server-side component can implement implicit auth.
To get a redirect URI:
var redirectUri = auth.getImplicitRedirectUri(); window.location.href = redirectUri.toString();
After you have obtained an access token, use it to receive a
SteemClient contains several getters that correspond to endpoints. Each is an abstraction over
a specific Steem API.
This client library is written based on the code of instagram_dart
Add this to your package's pubspec.yaml file:
dependencies: fluttersteem: "^0.0.7"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.0.7||Mar 6, 2018|
|0.0.6||Mar 6, 2018|
|0.0.5||Mar 6, 2018|
|0.0.4||Mar 5, 2018|
|0.0.3||Mar 5, 2018|
|0.0.2||Mar 4, 2018|
|0.0.1||Mar 4, 2018|
We analyzed this package on Mar 6, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
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]
Detected platforms: Flutter, other
Fix issues reported by
dartfmtreported 3 warnings 29 hints.
Strong-mode analysis of
lib/src/models/models.json.g.dartgave the following warning:
line: 490 col: 15
A function of type '(Map<String, dynamic>) → Beneficiary' can't be assigned to a location of type '(dynamic) → Beneficiary'.
Similar analysis of the following files failed:
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.22.0 <2.0.0|