搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。