搜索插件、代码仓与 APP 分类

插件详情v1.0.4

pulse_x

Pulse X 是一个轻量级的状态管理工具。它具有四个特性:状态管理、无上下文路由、依赖注入和反应(副作用)

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
13
喜欢数
6
Pub 分数
150

安装插件

flutter pub add pulse_x

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Pulse X 是一个轻量级的状态管理解决方案,旨在简化和高效。它将状态管理、无上下文路由、依赖注入以及反应处理(副作用)整合在一个极小的体积中。专为 Flutter 设计,使开发者能够管理应用状态、在不依赖上下文的情况下在页面间导航、无缝注入依赖项,并在状态变化时触发副作用——所有这些都只需极少的样板代码。非常适合中小型应用,作为更重态解决方案的精简替代方案。

适合场景

  • 简单的应用状态管理
  • 无上下文导航
  • Flutter 应用中的依赖注入
  • 处理 API 调用等副作用
  • 提供者或 bloc 的轻量级替代方案

主要特点

  • 最小化样板代码
  • 无上下文路由
  • 内置依赖注入
  • 反应(副作用)支持
  • 跨平台兼容性

适合对象

  • 初学者 Flutter 开发者
  • 小型到中型项目
  • 需要轻量级状态管理的应用程序
  • 开发者避免使用复杂的状态库
  • 快速原型设计

使用建议

  • 与其他成熟包相比,文档有限
  • 不太适合非常大规模的应用程序
  • 可用的社区资源较少
  • 高级功能可能需要学习曲线
  • 在大规模生产环境中验证较少

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Pulse-X State Management

Pulse-X Logo

Why Pulse-X?

Pulse-X is a light weight state management solution for your Flutter project.
🏹 Pulse-X's 3 Main Targets
🚀 PRODUCTIVITY | ⚖️ SCALABILITY | 🧩 MODULARITY

🎯 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? 😉

Documentation

For more complete documentation, you can read here👉🏻 Pulse-X Documentation

Example

Source code of this example project can be found in example folder. More and more examples are coming....

Pulse-X Example

Installing Pulse-X

🚧🚧 Currently, Pulse-X is under construction.
To use Pulse-X from Pub,
Depend on it

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.

Import it

Now in your Dart code, you can use:

import 'package:pulse_x/pulse_x.dart';
If you wanna manually use it from GitHub. Here's the guide.

In your project's pubspec.yaml file, under dependencies: section, use like this.

dependencies:
    pulse_x:
    git:
      url: https://github.com/YeLwinOo-Steve/pulse_x.git
      ref: master # master branch

Features

Pulse-X is mainly composed of ( 5 ) features.
  1. 💡 Simple Data Management
  2. 🌊 Stream Management
  3. 🔮 Future data Management
  4. 💉 Dependency Injection (DI)
  5. 🧭 Navigator

Usage

1. Simple data management
🎢 Iteratable data management
  • 📃 Documentation → https://ye-lwin-oo-1.gitbook.io/Pulse-X-state-management/state-management/collection-data
  • 👾 Example → https://github.com/YeLwinOo-Steve/rand_user
🌊 Stream data management
  • 📃 Documentation → https://ye-lwin-oo-1.gitbook.io/Pulse-X-state-management/state-management/stream-data
  • 👾 Example → https://github.com/YeLwinOo-Steve/stream_time
🔮 Future data management
  • 📃 Documentation → https://ye-lwin-oo-1.gitbook.io/Pulse-X-state-management/state-management/future-data
  • 👾 Example → https://github.com/YeLwinOo-Steve/posts
🚧 This documentation is under construction!! More are coming...

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。