bloc_flutter 0.1.0

  • Readme
  • Changelog
  • Installing
  • 35

bloc_flutter #

flutter bloc

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[ 0.1.0] - 2019-05-03

Initial release

Use this package as a library

1. Depend on it

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


dependencies:
  bloc_flutter: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or 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:bloc_flutter/bloc_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
42
Health:
Code health derived from static analysis. [more]
13
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
35
Learn more about scoring.

We analyzed this package on Dec 4, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms:

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/state_builder.dart. (-68.36 points)

Analysis of lib/src/state_builder.dart failed with 4 errors:

line 4 col 45: Undefined class 'BlocState'.

line 13 col 31: Undefined class 'BlocEvent'.

line 13 col 53: Undefined class 'BlocState'.

line 15 col 9: Undefined class 'EventStateBaseBloc'.

Fix lib/src/bloc_provider.dart. (-57.81 points)

Analysis of lib/src/bloc_provider.dart failed with 3 errors:

line 143 col 30: Undefined class 'BaseBloc'.

line 156 col 25: Undefined class 'BaseBloc'.

line 164 col 36: Undefined class 'BaseBloc'.

Format lib/bloc_flutter.dart.

Run flutter format to format lib/bloc_flutter.dart.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

The package description is too short. (-20 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 bloc_flutter.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
bloc_base ^0.1.0 0.1.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
rxdart 0.21.0 0.22.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test