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

パッケージ詳細v0.5.0

signal_strength_indicator

Flutter用のカスタマイズ可能な信号強度インジケーターウィジェット。信号強度を簡単に可視化できます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
9750
いいね数
35
Pub ポイント
160

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

flutter pub add signal_strength_indicator

パッケージ概要

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

ネットワーク接続モニタリングに最適な、信号強度を視覚的に表現するカスタマイズ可能なFlutterウィジェットです。調整可能なスタイルと動作で信号レベルを簡単に表示できます。このインジケーターはAndroid、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、クロスプラットフォームアプリケーションに適しています。複雑な実装なしに、クリーンで応答性のある信号可視化が必要な開発者向けに設計されています。

用途

  • ネットワークステータスダッシュボード
  • モバイルアプリ接続インジケーター
  • IoTデバイス接続モニタ
  • リアルタイム信号レベル表示
  • 使いやすいネットワークフィードバック

主な機能

  • カスタマイズ可能な外観
  • クロスプラットフォーム互換性
  • シンプルな統合
  • レスポンシブ信号の可視化
  • 設定可能な信号しきい値

適している対象

  • ネットワーク対応アプリを開発する開発者
  • 信号インジケータが必要なUIデザイナー
  • リアルタイム接続フィードバックを必要とするアプリケーション
  • クロスプラットフォームのモバイルおよびデスクトップアプリ
  • 最小限の依存関係要件を持つプロジェクト

注意事項

  • 手動で信号値を入力する必要があります
  • 視覚的表現のみに限定
  • 内蔵された信号測定なし
  • 外部のシグナルデータソースと併用するのが最適です
  • ダークモード用に追加のスタイルが必要になる場合があります

元の README

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

Signal strength indicator widget

Pub CI Demo

Customizable signal strength indicator widget for Flutter.

Contents

Requirements

  • Dart SDK: >=3.0.0
  • Flutter: >=3.10.0

Features

See the WEB DEMO.

Two visual variants:

  • Bars — classic stacked bars with optional rounded corners, bevelled style, and spacing
  • Sector — quarter-circle arc segments with optional rounded caps

Installation

Add this to your pubspec.yaml:

dependencies:
  signal_strength_indicator: ^0.5.0

Then run:

flutter pub get

Import in your Dart code:

import 'package:signal_strength_indicator/signal_strength_indicator.dart';

Usage

Bars
SignalStrengthIndicator.bars(
  value: 0.6,
  size: 40,
  barCount: 4,
  spacing: 0.2,
  activeColor: Colors.green,
  inactiveColor: Colors.grey.shade300,
)
Sector
SignalStrengthIndicator.sector(
  value: 0.6,
  size: 40,
  barCount: 4,
  spacing: 0.3,
  rounded: true,
)
Custom value range
SignalStrengthIndicator.bars(
  value: -65,     // e.g. RSSI in dBm
  minValue: -100,
  maxValue: -40,
  size: 40,
)
Threshold-based coloring with levels

levels is a Map<num, Color> mapping absolute thresholds to colors. A bar/segment becomes active and uses the color of the highest threshold that is <= the current value.

SignalStrengthIndicator.bars(
  value: signalValue,
  minValue: 0,
  maxValue: 100,
  size: 40,
  barCount: 3,
  levels: {
    33: Colors.red,
    66: Colors.orange,
    100: Colors.green,
  },
)
Rounded corners and bevelled bars
// Rounded corners
SignalStrengthIndicator.bars(
  value: 0.7,
  size: 40,
  radius: const Radius.circular(4),
)

// Bevelled (each bar steps up at an angle)
SignalStrengthIndicator.bars(
  value: 0.7,
  size: 40,
  bevelled: true,
)

Parameters

Common parameters (bars and sector)
Parameter Type Default Description
value num required Current signal value
minValue num? 0.0 Minimum value of the range
maxValue num? 1.0 Maximum value of the range
size double? icon theme size Width and height of the widget
barCount int 3 Number of bars/segments
activeColor Color? green Color of active bars (when no levels)
inactiveColor Color? light green Color of inactive bars
levels Map<num, Color>? — Threshold-to-color mapping (absolute values)
spacing double 0.2 / 0.3 Gap between bars as a fraction of bar size
margin EdgeInsets zero Outer margin around the widget
Bars-only parameters
Parameter Type Default Description
radius Radius? Radius.zero Corner radius of each bar
bevelled bool false Draw bars with an angled top edge
Sector-only parameters
Parameter Type Default Description
rounded bool false Use rounded arc cap ends

Feature requests and bugs

Please file feature requests and bugs at the issue tracker.

カテゴリー

ソースリポジトリ

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