velocity_bloc 1.1.4 copy "velocity_bloc: ^1.1.4" to clipboard
velocity_bloc: ^1.1.4 copied to clipboard

Minimalist and Easy State Management for Bloc Inspired from Dart Generics.

Velocity Bloc #

codersangam - velocity_bloc stars - velocity_bloc forks - velocity_bloc GitHub release License issues - velocity_bloc

Getting started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  velocity_bloc: <latest_version>

In your library add the following import:

import 'package:velocity_bloc/velocity_bloc.dart';

Summary #

.onUpdateData(dynamic data) - updates the bloc with new data on states.

.onFailedResponse(String error) - holds the failed responses/exceptions as String.

VelocityInitialState - Initial state of the bloc.

VelocityUpdateState - Loaded/Updated state of the bloc.

VelocityFailedState - Failed/Error state of the bloc.


For help getting started with Flutter, view the online documentation.


License #

Released under MIT by @codersangam.

Contribution #

  1. Fork it (https://github.com/codersangam/velocity_bloc/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
20
likes
160
pub points
76%
popularity
screenshot

Publisher

verified publishervelocitybloc.dev

Minimalist and Easy State Management for Bloc Inspired from Dart Generics.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bloc, equatable, flutter, flutter_bloc

More

Packages that depend on velocity_bloc