flutter_telescope library
Flutter Telescope - A powerful network monitoring and debugging package.
This package provides comprehensive network activity monitoring for Flutter applications with beautiful UI components and detailed logging capabilities.
Features:
- Network request/response logging
- Beautiful UI for debugging
- Dio and HTTP client interceptors
- Database storage of network activities
- Automatic cleanup of old network activities (configurable)
- Floating test button for easy access
- Material 3 design with dark mode support
Usage:
import 'package:flutter_telescope/flutter_telescope.dart';
// Initialize the package
await NetworkInspector.initialize();
// Configure automatic cleanup (default: 10 minutes)
NetworkInspectorConfig.configureAutoCleanup(
enabled: true,
interval: Duration(minutes: 10),
);
// Add Dio interceptor
dio.interceptors.add(DioInterceptor());
// Enable floating test button
NetworkInspectorConfig.enableTestButton();
Classes
- ActivityCard
- ActivityDetailPage
- ActivityPage
- Page that displays a list of all network activities
- DioClientHelper
- DioInterceptor
- Dio interceptor that logs network requests and responses to the NetworkInspector.
- FloatingTestButton
- HttpClientHelper
- HttpInterceptor
- MetaItem
- MethodChip
- Service for handling navigation throughout the application.
- NetworkActivity
- Represents a network activity (HTTP request/response) for logging and debugging.
- NetworkInspector
- Core class for network activity monitoring and logging.
- NetworkInspectorConfig
- Configuration class for the NetworkInspector floating test button.
- NetworkInspectorOverlay
- TelescopeHttpClient
-
A drop-in
http.Clientthat transparently logs every request and response to the NetworkInspector.
Typedefs
- OnHttpFinish = void Function(int hashCode, String title, String message)