pulse_x
Pulse X 是迷你狀態管理工具。它有四個特性——狀態管理、無上下文路由、依賴注入與反應(副作用)
Flutter 的 Pulse X 狀態管理套件
{"sdk":"flutter"}^3.1.0{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
Pulse-X Logo
🎯 PRODUCTIVITY
Pulse-X is aimed to help you make your productivity high. It's intuitive and it won't take you long to build MVVM structure. You can write cleaner, more structural and more maintainable code.
🎯 SCALABILITY
Pulse-X is here to make your program's architecture highly scalable. You can easily make layer based architecture or feature based architecture. You can add new features or remove old features without worrying much about code duplication and complexity.
🎯MODULARITY
Without Modules, you can get headache and will probably end up in writing spaghetti code. Modules are easily attachable, detachable and switchable. But making modules isn't an easy task. But don't worry! Pulse-X will reduce your burden a lot. Pulse-X has built-in service locator. Therefore, you can inject your view models on your need so that your code can become less coupling and more cohesive. Pretty easy, right? 😉
For more complete documentation, you can read here👉🏻 Pulse-X Documentation
Source code of this example project can be found in
examplefolder. More and more examples are coming....
Pulse-X Example
Run this command:
With Flutter:
$ flutter pub add pulse_x
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pulse_x: ^1.0.2
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:pulse_x/pulse_x.dart';
In your project's
pubspec.yamlfile, underdependencies:section, use like this.
dependencies:
pulse_x:
git:
url: https://github.com/YeLwinOo-Steve/pulse_x.git
ref: master # master branch