flutter_bloc_arch 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 27

This package was renamed to bloc_component

[0.0.2] - 2020-01-12 #

  • Package renamed to bloc_component

[0.0.1] - 2020-01-11 #

  • Initial version of the library. Includes BaseBloc, Component and ComponentView


example #

An example of using the flutter_bloc_arch library

Getting Started #

This example demonstrates how to use the flutter_bloc_arch library by building a simple app for showing a movies list and adding them to favorite list. For more info please refer to the library [repository] or to the [docs]

The app is fully documented, so that there is almost no need to explain anything here.

Movies App demo

App contents #

The app contains 2 pages:

  • Movies Page: Shows a list of all the available movies in the repository with the ability to add movies to the favorite list and to filter them according to the genre.
  • Favorite Movies Page: Shows the favorite movies with the ability to remove them from the favorite list

The app contains 4 Components:

  • A Component for the Movies Page
  • A Component for the Favorite Movies Page
  • A Component for the App Home (A home page wrapper)
  • A shared component (MovieItem) that is used by both the Movies Page and the Favorite Movies Page

Use this package as a library

1. Depend on it

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

  flutter_bloc_arch: ^0.0.2

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:flutter_bloc_arch/flutter_bloc_arch.dart';
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]
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

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

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

line 13 col 7: Missing concrete implementation of 'getter Equatable.stringify'.

line 33 col 7: Missing concrete implementation of 'getter Equatable.stringify'.

line 49 col 7: Missing concrete implementation of 'getter Equatable.stringify'.

line 63 col 7: Missing concrete implementation of 'getter Equatable.stringify'.

Format lib/flutter_bloc_arch.dart.

Run flutter format to format lib/flutter_bloc_arch.dart.

Format lib/src/component.dart.

Run flutter format to format lib/src/component.dart.

Format lib/src/state_builder.dart.

Run flutter format to format lib/src/state_builder.dart.

Maintenance suggestions

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
bloc ^3.0.0 3.0.0
equatable ^1.0.2 1.1.0
flutter 0.0.0
flutter_bloc ^3.1.0 3.2.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
nested 0.0.4
provider 4.0.4 4.1.0-dev
rxdart 0.23.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies