inspector
4.0.0, released 8 months ago by kekland.com
A Flutter package for inspecting widgets, colors, and sizes during debugging and QA testing.
WASM-ready
What it does
Inspector provides a widget inspection overlay for Flutter apps, letting developers and QA testers measure sizes, view padding, pick colors, zoom in with a magnifying glass, and inspect typography or border radius. It includes keyboard shortcuts and can be customized with a custom UI via InspectorController.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly inspect widget sizes, padding, and styling during development or QA testing.
- You want an eyedropper/color picker tool built right into your debug build.
- You need custom inspector UI controls built on top of an inspector controller.
Skip it when
- In final production release builds, though it is disabled by default when kReleaseMode is true.
Strengths
- Includes helpful built-in tools like a color picker, size inspector, and magnifying glass.
- Supports keyboard shortcuts for rapid toggling.
- Exposes an InspectorController for building custom inspector UIs.
Weaknesses
- Package development is noted as still in progress (WIP) and things may break your app.
- Absorbs pointer events when enabled to facilitate inspection.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Wrap MaterialApp.builder or WidgetsApp.builder with the Inspector widget.
MaterialApp(
home: ExampleApp(),
builder: (context, child) => Inspector(child: child!),
)Works with
Packages commonly used together with inspector: ones it builds on, ones built on it, and its own family.