Skip to content
pubscout

ispect_layout

7.2.0, released 4 weeks ago by an unverified publisher

Visual layout inspector to inspect sizes, paddings, decorations, and compare widgets at runtime.

WASM-ready
$ flutter pub add ispect_layout
Source repository

What it does

ispect_layout provides a visual layout inspector for Flutter. It lets you tap any widget at runtime to inspect its render box properties, sizes, constraints, padding, decorations, text styles, and transform matrices. It also includes a compare mode to measure pixel gaps between widgets, plus a colour picker and zoom magnifier.

AI-written summary of version 7.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to debug layout issues, sizes, or constraints on widgets at runtime.
  • You want to inspect text styles, borders, shadows, or gradients visually.
  • You need to measure pixel gaps or offsets between two widgets using a compare mode.

Skip it when

  • You are running in a strict production environment where debug tools must be entirely excluded.
  • You need state-management or network-logging features rather than layout inspection.

Strengths

  • Comprehensive coverage of Flutter render objects and wrapper ancestors.
  • Works in profile and release builds when enabled with compile flags.
  • Includes helpful utilities like a colour picker, zoom magnifier, and widget comparison mode.

Weaknesses

  • Type names and custom painters/clippers are obfuscated when using code obfuscation.
  • ColorFilter details on images or vectors are limited by dart:ui accessors.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Wrap your app or router with the Inspector widget and enable diagnostics via the compile-time flag --dart-define=ISPECT_ENABLED=true.

MaterialApp(
  home: const MyApp(),
  builder: (context, child) => Inspector(
    isEnabled: true,
    child: child!,
  ),
)

Alternatives

Packages that do the same job and could replace ispect_layout.

  • device_preview

    If you need to preview your app across different screen sizes and device frames rather than inspecting render box properties.

Works with

Packages commonly used together with ispect_layout: ones it builds on, ones built on it, and its own family.