분류, 패키지 및 저장소 검색

inspector 표지
패키지 상세v4.0.0

inspector

위젯을 검사하기 위한 Flutter 패키지입니다. 빠른 디버깅 또는 QA 테스트에 유용합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
51.2만
좋아요
87
Pub 점수
150

패키지 설치

flutter pub add inspector

패키지 개요

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

인스펙터 패키지는 실시간 위젯 검사를 위한 플러터 도구로, 개발자와 테스터가 UI 문제를 신속하게 디버깅하거나 품질 보증 점검을 수행할 수 있도록 설계되었습니다. 장치 또는 에뮬레이터에서 위젯 트리, 그 속성 및 레이아웃 동작을 직접 확인할 수 있는 인터랙티브 오버레이를 제공합니다. 개발 중 빠른 피드백을 위해 이상적이며, 복잡한 설정 없이도 UI 구조에 대한 가시성을 높여줍니다. 이 패키지는 모든 주요 플랫폼을 지원하여 다양한 환경에서 유연하게 사용할 수 있습니다.

사용 사례

  • 빠른 UI 디버깅
  • QA 테스트
  • 실시간 위젯 분석
  • 개발 피드백 루프
  • 크로스 플랫폼 UI 검증

주요 기능

  • 인터랙티브 위젯 오버레이
  • 라이브 속성 검사
  • 모든 플러터 플랫폼을 지원합니다
  • 최소한의 설정 필요
  • 개발자가 아닌 사용자를 위한 직관적인 UI

적합한 대상

  • Developers
  • QA 테스터
  • UI 디자이너
  • 빠른 프로토타이핑 팀

고려 사항

  • 생산 빌드용으로 의도되지 않음
  • 대규모 앱에서 성능에 영향을 미칠 수 있습니다
  • 오버레이가 테스트 중에 UI에 영향을 줄 수 있습니다
  • 수동 활성화 필요
  • 시각 검사에만 제한됨

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

inspector

Pub Version GitHub Workflow Status Coverage Status GitHub Repo stars

A Flutter package for inspecting widgets. Also comes with an eyedropper and a magnifying glass. Useful for debugging widgets and for QA testing.

Supports keyboard shortcuts if you're using a physical keyboard.

Check out the example web app!

Inspired by inspx.

WIP

Warning, the development of this package is still in progress and some things may break your app.

Features

  • [x] Color picker
  • [x] Size inspection
  • [x] Padding inspection
  • [x] Keyboard shortcuts
  • [x] Zooming
  • [ ] BorderRadius inspection
  • [x] TextStyle inspection

Installing

Add the dependency:

$ flutter pub add inspector

Import the package:

import 'package:inspector/inspector.dart';

Wrap MaterialApp.builder or WidgetsApp.builder with Inspector:

MaterialApp(
  home: ExampleApp(),
  builder: (context, child) => Inspector(child: child!), // Wrap [child] with [Inspector]
),

Optionally, you can pass isEnabled to the Inspector to disable it. By default, the inspector is disabled when kReleaseMode == true.

Usage

If the inspector is enabled, then a panel appears on the right side of the screen, with buttons to toggle size inspection and the color picker.

It's quite straightforward to use, just tap on the widget that you want to measure or tap on the pixel to get its color.

You can also use keyboard shortcuts - Shift will toggle the color picker, Z will toggle the zoom, and Alt or Cmd will toggle the widget inspector.

Examples

Contact me

Feel free to contact me at:

E-mail: kk.erzhan@gmail.com

카테고리

소스 저장소

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