commercio_ui 0.0.1

  • Readme
  • Changelog
  • Installing
  • 50

CommercioUI #

CommercioUI reduces your overall blockchain app development time by 90% because of its pre-build clean Core+UI widgets that you can use in any flutter app development. We have spent one year to build this library to make to make your life easier.

Commercio UI Infographic

Core #

Stateless #

The Stateless part is just a lightweight layer built on top of the commercio-sdk. It's thought to give the maximum flexibility to the developer.

Example of usage when generating a new wallet:

final networkInfo = NetworkInfo(
  bech32Hrp: 'did:com:',
  lcdUrl: 'http://localhost:1317',
);

final wallet = await StatelessCommercioAccount.generateNewWallet()

Stateful #

Stateful is built using the Stateless layer and give a custom state management for commercio-related operations. The operations are the same of the Stateless layer but state, storage and caching are provided out-of-the-box.

For example, can used with a Provider-ChangeNotifier/StateNotifier implementation to build a custom app without have to manage the commercio-related state.

UI #

BLoC #

If the project already uses or will be created using the BLoC library then CommercioUI provides a large set of blocs, events and states already implemented that can be integrated easily in the project.

Widgets #

The Widgets supports and wraps 3 of the following widgets:

  • FlatButton
  • TextField
  • Text

The provided widgets directly use BLoC implementation to send, receive and handle events and states. With these widgets only the BLoC should be provided and then the interface can be built extremely fast.

[0.0.1] - 2020-06-04 #

  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  commercio_ui: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:commercio_ui/commercio_ui.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
23
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
43
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Jul 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform Linux

Because:

  • package:commercio_ui/commercio_ui.dart that imports:
  • package:commercio_ui/export.dart that imports:
  • package:commercio_ui/ui/export.dart that imports:
  • package:commercio_ui/ui/docs/export.dart that imports:
  • package:commercio_ui/ui/docs/commercio_docs_ui.dart that imports:
  • package:commercio_ui/ui/docs/bloc/commercio_docs_bloc.dart that imports:
  • package:commercio_ui/core/stateful/commercio_id_stateful.dart that imports:
  • package:flutter_secure_storage/flutter_secure_storage.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform Web

Because:

  • package:commercio_ui/commercio_ui.dart that imports:
  • package:commercio_ui/export.dart that imports:
  • package:commercio_ui/ui/export.dart that imports:
  • package:commercio_ui/ui/docs/export.dart that imports:
  • package:commercio_ui/ui/docs/commercio_docs_ui.dart that imports:
  • package:commercio_ui/ui/docs/bloc/commercio_docs_bloc.dart that imports:
  • package:commercio_ui/core/stateful/commercio_id_stateful.dart that imports:
  • package:flutter_secure_storage/flutter_secure_storage.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform Windows

Because:

  • package:commercio_ui/commercio_ui.dart that imports:
  • package:commercio_ui/export.dart that imports:
  • package:commercio_ui/ui/export.dart that imports:
  • package:commercio_ui/ui/docs/export.dart that imports:
  • package:commercio_ui/ui/docs/commercio_docs_ui.dart that imports:
  • package:commercio_ui/ui/docs/bloc/commercio_docs_bloc.dart that imports:
  • package:commercio_ui/core/stateful/commercio_id_stateful.dart that imports:
  • package:flutter_secure_storage/flutter_secure_storage.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform macOS

Because:

  • package:commercio_ui/commercio_ui.dart that imports:
  • package:commercio_ui/export.dart that imports:
  • package:commercio_ui/ui/export.dart that imports:
  • package:commercio_ui/ui/docs/export.dart that imports:
  • package:commercio_ui/ui/docs/commercio_docs_ui.dart that imports:
  • package:commercio_ui/ui/docs/bloc/commercio_docs_bloc.dart that imports:
  • package:commercio_ui/core/stateful/commercio_id_stateful.dart that imports:
  • package:flutter_secure_storage/flutter_secure_storage.dart that declares support for platforms: Android, iOS

Package not compatible with SDK dart

Because:

  • commercio_ui that is a package requiring null.

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (bloc, flutter_bloc).

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and commercio_ui.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
basic_utils ^2.5.3 2.5.5
bip39 ^1.0.3 1.0.3
bloc ^4.0.0 4.0.0 5.0.1
commerciosdk ^2.1.0 2.1.2
equatable ^1.1.1 1.2.2
flutter 0.0.0
flutter_bloc ^4.0.0 4.0.1 5.0.1
flutter_secure_storage ^3.3.3 3.3.3
http ^0.12.1 0.12.1
meta ^1.1.8 1.1.8 1.2.2
sacco ^0.1.4 0.1.4
uuid ^2.0.4 2.2.0
Transitive dependencies
args 1.6.0
asn1lib 0.6.5
bech32 0.1.2
bip32 1.0.5
bip_bech32 0.1.3
bitcoin_flutter 1.1.0 2.0.1
bs58check 1.0.1
charcode 1.1.3
clock 1.0.1
collection 1.14.12 1.14.13
convert 2.1.1
crypto 2.1.5
ed25519_hd_key 1.0.1
encrypt 4.0.2
fixnum 0.10.11
hex 0.1.2
http_parser 3.1.4
intl 0.16.1
json_annotation 3.0.1
logging 0.11.4
nested 0.0.4
path 1.7.0
pedantic 1.9.0 1.9.2
pointycastle 1.0.2
provider 4.3.1
sky_engine 0.0.99
source_span 1.7.0
steel_crypt 1.7.1+1 2.0.3
string_scanner 1.0.5
term_glyph 1.1.0
tweetnacl 0.3.2
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test
lint ^1.2.0
mockito ^4.1.1
test ^1.14.4
test_coverage ^0.4.1