Skip to content

codersangam/velocity_bloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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