Skip to content

DevTools & Inspector

Air Framework ships a built-in in-app debug inspector — a floating overlay that sits on top of your app during development. It is not a Flutter DevTools extension; it lives directly inside your app as a draggable panel.

Wrap your MaterialApp.router builder with DebugOverlay:

import 'package:air_framework/air_framework.dart';
MaterialApp.router(
routerConfig: AirRouter().router,
builder: (context, child) {
// Wrap with DebugOverlay to enable the in-app inspector
return DebugOverlay(child: child!);
},
)

The DebugOverlay widget adds a floating button (bolt icon, cyan) to your app — visible only in debug builds by default. Tap it to open the panel.

Once opened, the panel shows 8 tabs:

AirGraphTab — Visual dependency graph of all registered modules and their inter-module relationships.

See which modules depend on which at a glance. Useful for detecting unexpected coupling.

DebugOverlay accepts an enabled flag. Pass false to remove it entirely from release builds:

builder: (context, child) {
return DebugOverlay(
enabled: kDebugMode, // only shown in debug mode
child: child!,
);
},

The Air inspector is independent from Flutter DevTools. You don’t need to open DevTools to use it — everything is accessible directly on the device/simulator screen. Flutter DevTools still works normally alongside it (Widget Inspector, Timeline, Memory, etc.).