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