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.
DebugEnvironmentManager
Environment manager for debugging.
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.
DebugStateInspector
State Inspector manager.
DebugToolbar
A toolbar widget with common actions.
Environment
Represents an API environment configuration.
EnvironmentPresets
Predefined environment templates.
FeatureFlag
A feature flag definition.
FlutterDebugPanel
Main class for the Flutter Debug Panel.
InspectedProvider
Represents a registered provider/state.
LogEntry
A single log entry.
RiverpodInspector
Helper class for Riverpod inspection.
StateChange
Represents a state change event.

Enums

DebugPanelColorScheme
Predefined color schemes for the debug panel.
HttpMethod
HTTP request method.
LogLevel
Log level for debug messages.
StateManagementType
Type of state management.

Mixins

BlocInspectable
Helper class for BLoC inspection.
ProviderInspectable
Mixin for Provider state inspection.

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.