flutter_debug_panel library

Flutter Debug Panel

A hidden in-app developer debug console for Flutter apps. Provides gesture triggers, logs viewer, network inspector, device info, storage viewer, and feature toggles.

Classes

DebugActionButton
A styled action button for toolbars.
DebugBadge
A styled badge/label for displaying status or type.
DebugDetailSheet
A modal bottom sheet for displaying details.
DebugEmptyState
An empty state placeholder widget.
DebugFeatureFlags
Feature flags manager for debugging.
DebugInfoCard
A styled info card for displaying key-value pairs.
DebugInfoItem
An item in a debug info card.
DebugListTile
A styled list item tile.
DebugLogger
Debug logger that stores log entries in memory.
DebugNetworkInterceptor
Dio interceptor for logging network requests.
DebugNetworkLogger
Network logger that stores HTTP requests.
DebugNetworkRequest
Represents a network request.
DebugPanelConfig
Configuration for the debug panel.
DebugPanelTheme
Theme data for the debug panel.
DebugPanelThemeProvider
Inherited widget to provide theme to descendants.
DebugSearchField
A styled search text field for the debug panel.
DebugSelectableText
A selectable text widget with copy functionality.
DebugToolbar
A toolbar widget with common actions.
FeatureFlag
A feature flag definition.
FlutterDebugPanel
Main class for the Flutter Debug Panel.
LogEntry
A single log entry.

Enums

DebugPanelColorScheme
Predefined color schemes for the debug panel.
HttpMethod
HTTP request method.
LogLevel
Log level for debug messages.

Extensions

DebugPanelThemeExtension on BuildContext
Extension on BuildContext for easy theme access.
LogLevelExtension on LogLevel
Extension on LogLevel to get string representation.

Functions

copyToClipboard(BuildContext context, String text, [String? label]) → void
Copies text to clipboard and shows a snackbar.
showDebugSnackBar(BuildContext context, String message) → void
Shows a snackbar with a message.