inspector 1.0.0 copy "inspector: ^1.0.0" to clipboard
inspector: ^1.0.0 copied to clipboard

outdated

A Flutter package for inspecting widgets.

inspector #

Made as a proof of concept.

A Flutter package for inspecting widgets. Comes with size inspection and a color picker. Useful for debugging widgets and for QA testing.

Inspired by inspx.

WIP #

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

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 enable/disable size inspection and enable 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.

Examples #

Contact me #

Feel free to contact me at:

E-mail: kk.erzhan@gmail.com

64
likes
0
pub points
88%
popularity

Publisher

verified publisherkekland.com

A Flutter package for inspecting widgets.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on inspector