iac_performance_overlay_ext 1.0.0
iac_performance_overlay_ext: ^1.0.0 copied to clipboard
Performance overlay extension for in_app_console. Displays a real-time draggable overlay with FPS, CPU usage, and memory consumption.
Performance Overlay Extension for In-App Console #
A Flutter plugin that adds a real-time performance overlay to the in_app_console package. Monitor FPS, CPU usage, and memory consumption directly on top of your app.
What does it do? #
This extension provides a draggable floating overlay that displays live performance metrics — frames per second, app CPU usage as a percentage of total device capacity, and app memory used versus total device RAM. An ON/OFF toggle in the console panel controls the overlay visibility, and the setting is persisted across app launches via shared_preferences.
Screenshot #
Register the extension #
final performanceExt = IacPerformanceOverlayExtension();
// Register the extension with the console
InAppConsole.instance.registerExtension(performanceExt);
// Wrap your app in MaterialApp.builder to show the overlay
MaterialApp(
navigatorKey: _navigatorKey,
builder: (context, child) => IacPerformanceOverlayWidget(
service: performanceExt.service,
overlayVisible: performanceExt.overlayVisible,
child: InAppConsoleBubble(
navigatorKey: _navigatorKey,
child: child!,
),
),
...
);