패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.5.0

signal_strength_indicator

Flutter용 사용자 정의 가능한 신호 세기 인디케이터 위젯입니다. 신호 세기를 쉽게 시각화할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
9.8천
좋아요
35
Pub 점수
160

패키지 설치

flutter pub add signal_strength_indicator

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

네트워크 연결 모니터링에 적합한 신호 강도를 시각적으로 표현하는 사용자 정의 가능한 Flutter 위젯입니다. 조정 가능한 스타일과 동작으로 신호 수준을 간단하게 표시할 수 있습니다. 이 지표는 Android, iOS, 웹, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 크로스플랫폼 애플리케이션에 적합합니다. 복잡한 구현 없이 깔끔하고 반응성 있는 신호 시각화가 필요한 개발자를 위한 설계입니다.

사용 사례

  • 네트워크 상태 대시보드
  • 모바일 앱 연결 지표
  • 사물인터넷 장치 연결 모니터
  • 실시간 신호 레벨 표시
  • 사용자 친화적인 네트워크 피드백

주요 기능

  • 사용자 정의 가능한 외관
  • 크로스 플랫폼 호환성
  • 간단한 통합
  • 반응형 신호 시각화
  • 사용자 지정 가능한 신호 임계값

적합한 대상

  • 네트워크 인식 앱을 개발하는 개발자
  • 신호 표시기가 필요한 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.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트