FLUTTER ECOSYSTEM

codersangam/velocity_bloc

一个受 Dart 泛型启发的缺失的 Bloc 状态管理插件。

velocity_bloc 项目封面
Stars
23
Forks
3
最近推送(UTC)
2025年1月15日
项目状态
未归档
Sangam Singh GitHub avatar
GITHUB User

Sangam Singh ↗

Software Engineer | Youtuber | Flutter | Dart

语言DartC++CMakeRubyHTMLSwiftCKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 6 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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