FLUTTER ECOSYSTEM

kekland/inspector

위젯을 검사하기 위한 플러터 패키지입니다.

검사기 프로젝트 이미지
Stars
60
Forks
18
최근 푸시(UTC)
2026. 3. 30.
프로젝트 상태
활성
Erzhan GitHub avatar
GITHUB User

Erzhan ↗

i do some flutter things

Almaty, Kazakhstan
언어DartC++CMakeCSwiftHTMLKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^1.0.4

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

inspector

Pub Version GitHub Workflow Status Coverage Status GitHub Repo stars

https://github.com/kekland/inspector/raw/master/img/inspector.png

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

https://github.com/kekland/inspector/raw/master/img/example.gif
  • [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

https://github.com/kekland/inspector/raw/master/img/screenshot-1.png https://github.com/kekland/inspector/raw/master/img/screenshot-2.png

Contact me

Feel free to contact me at:

E-mail: kk.erzhan@gmail.com