パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v7.1.0

signals

リアクティビティをシンプルに。少ない作業でより多くのことを実現。FlutterおよびHTML/JS、CLI、Shelfサーバー、VMなど、あらゆるDartプロジェクトをサポート。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2.6万
いいね数
714
Pub ポイント
160

パッケージをインストール

flutter pub add signals

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Signals は、Dart および Flutter 向けの軽量なリアクティビティライブラリであり、データが変更されたときに自動的に更新されることで、状態管理を簡素化します。最小限のボイラープレートでリアクティブな変数や式を作成できるため、動的な UI を簡単に構築し、さまざまなプラットフォーム間で状態を管理できます。シンプルさとパフォーマンスを重視して設計されており、Flutter アプリだけでなく、サーバー、CLI ツール、Web アプリなど非 UI 環境でもスムーズに動作します。API は直感的で、少ないコードでより多くのことを実現することに焦点を当てています。

用途

  • リアルタイムUIの更新
  • クロスプラットフォーム状態管理
  • サーバーサイドのリアクティブなロジック
  • 簡略化された依存関係のトラッキング
  • Providers の軽量な代替手段
  • イベント駆動型アプリケーションアーキテクチャ

主な機能

  • ボイラープレートゼロの反応性
  • 自動的な依存関係のトラッキング
  • すべてのDartプラットフォームで動作します
  • 最小限のAPI表面
  • 非同期および同期シグナルをサポート
  • 組み合わせ可能なシグナル式

適している対象

  • シンプルな反応性を求める開発者
  • 軽量な状態が必要なFlutterアプリ
  • リアクティブな要件を持つ非UI Dartプロジェクト
  • 複雑な状態のソリューションを避けるチーム
  • 迅速なUI変更のプロトタイピング
  • 複数のプラットフォームをターゲットにするプロジェクト

注意事項

  • 非常に大規模な状態ツリーには適していない
  • 制限された組み込みデバッグツール
  • 公式のデブツール統合はまだありません
  • 中程度の複雑さに最適
  • リアクティブパターンの理解が必要です
  • 高度な使用には、他の状態管理ライブラリとの併用が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト