Pakete, Repositories und App-Kategorien suchen

Paketdetailsv7.1.0

signals_flutter

Die Signals-Bibliothek bietet vier zentrale Funktionen, die die Bausteine für jedwede Geschäftslogik darstellen, die Sie sich vorstellen können.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
36.900
Likes
93
Pub-Punkte
150

Paket installieren

flutter pub add signals_flutter

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Signals Flutter ist eine leichte Lösung für das State-Management, die vier Kernfunktionen bereitstellt, um komplexe Geschäftslogik zu modellieren. Sie ermöglicht reaktive Programmierung, indem Entwickler Datenströme effizient erstellen, beobachten und darauf reagieren können. Aufbauend auf den reaktiven Prinzipien von Dart fördert sie sauberen, komponierbaren und testbaren Code. Die Bibliothek wurde für Einfachheit und Leistung optimiert und ist daher ideal für Anwendungen, die eine feinkörnige Kontrolle über Zustandsupdates über mehrere Plattformen hinweg erfordern.

Anwendungsfälle

  • Echtzeit-Daten-Synchronisation
  • Komplexe Formularzustandsverwaltung
  • Zustandsteilung über Widgets hinweg
  • ereignisbasierte UI-Aktualisierungen
  • Dynamische UI-Rendierung basierend auf dem Zustand
  • reaktive Modellierung von Geschäftslogik

Hauptmerkmale

  • Vier grundlegende reaktive Funktionen
  • Leichtgewichtiges und minimales API
  • Hoch komponierbar
  • Platform-agnostic
  • Integrierte Abhängigkeitsinjektion
  • Effiziente Änderungspropagation

Geeignet für

  • Entwickler, die eine geringe Overhead-Kosten beim State-Management suchen
  • Projekte, die eine feinkörnige Zustandssteuerung erfordern
  • Teams, die reaktive Programmiermuster verwenden
  • Anwendungen für mehrere Plattformen
  • Prototyping oder skalierbare Apps mit reaktiver Logik erstellen

Hinweise

  • Erfordert Verständnis reaktiver Programmierkonzepte
  • Begrenzte integrierte Debugging-Tools
  • Nicht empfehlenswert für sehr einfache Zustandsbedürfnisse
  • Lernkurve für Neueinsteiger im Signalsparadigma
  • Kann zusätzlichen Boilerplate für große Zustandsstrukturen erfordern

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

Tests Website GitHub stars Coverage GitHub issues GitHub pull-requests melos

Signals.dart

Try chat with CodeWiki!

Features

  • 🪡 Fine grained reactivity: Based on Preact Signals and provides a fine grained reactivity system that will automatically track dependencies and free them when no longer needed
  • ⛓️ Lazy evaluation: Signals are lazy and will only compute values when read. If a signal is not read, it will not be computed
  • 🗜️ Flexible API: Every app is different and signals can be composed in multiple ways. There are a few rules to follow but the API surface is small
  • 🔬 Surgical Rendering: Widgets can be rebuilt surgically, only marking dirty the parts of the Widget tree that need to be updated and if mounted
  • 💙 100% Dart Native: Supports Dart JS (HTML), Shelf Server, CLI (and Native), VM, Flutter (Web, Mobile and Desktop). Signals can be used in any Dart project

To start using signals, check out the full documentation.

VS Code Extension: https://marketplace.visualstudio.com/items?itemName=rodydavis.signals-dart

Packages

Package Pub
signals signals
signals_core signals_core
signals_flutter signals_flutter
signals_lint signals_lint
signals_hooks signals_hooks
preact_signals signals_lint
signals_devtools_extension

AI Developer Skills

To enable AI coding assistants (like Google Antigravity, Gemini, Claude, Cursor, GitHub Copilot, and others) to build high-quality reactive systems with signals.dart, this repository includes prepackaged, high-fidelity developer Skills.

These skills are located under the ./skills directory and are fully modular:

  • signals-preact-dart: Deep knowledge and best practices for core reactive primitives (signal, computed, effect, batch, untracked).
  • signals-dart: Best practices for async signal operations (FutureSignal, StreamSignal), reactive collections, writable computed signals (linkedSignal), and value semantics.
  • signals-flutter: Comprehensive guides on element-level reactive UI integration, high-frequency GPU rendering bypasses, lifecycle side-effects, and .watch(context) extensions.
  • signals-migration-6-to-7: Detailed instructions, patterns, and refactoring techniques to safely upgrade applications from signals v6.x to v7.0.0.
How to use them:
1. One-Command Installation via skills.sh

You can instantly install all available signals skills into your global AI environment using the unified skills.sh registry CLI:

npx skills add rodydavis/signals.dart
2. Manual Reference

Simply reference the path to the desired skill directory in your AI prompt, or load the contents of the relevant SKILL.md files as context for your AI coding assistant.

Contributors

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

  • signals_core^7.0.0

Quell-Repository

Projekte, die dieses Paket verwenden