flutter_debug_trinity 0.1.0
flutter_debug_trinity: ^0.1.0 copied to clipboard
Unified crash recovery (recoverable_app), explainable UI decisions (ui_explainer), and root-cause causality tracing (causality_flutter) — all sharing one event graph.
0.1.0 #
The Complete Debug Trinity #
First full release of flutter_debug_trinity — a unified crash recovery, layout explanation, and causality tracking system for Flutter.
Core
TrinityEventBus— singleton broadcast event bus with circular buffer (500 events)CausalEvent— typed, serializable event model with parent/child relationshipsCausalGraph— directed acyclic graph with auto-pruning, ancestor/descendant queries, and JSON exportCausalityZone— Dart Zone–based context propagation for automatic event parentage
Recoverable App
ErrorInterceptor— hooks into Flutter's three error zones (FlutterError, PlatformDispatcher, runZonedGuarded)SnapshotManager— persists route stack, scroll positions, form inputs, and custom state for crash recoveryErrorFingerprint— SHA-256 fingerprinting with severity classification for deduplicationRecoverableApp— drop-in widget that wraps your MaterialApp with full crash recoveryGracefulDegrader— component-level error boundary with retry and fallback supportFallbackScreen/ErrorBanner— pre-built recovery UIs with crash-loop detection
UI Explainer
LayoutDecisionRecorder— records constraints/size for every RenderBoxExplainableRenderBox— custom RenderBox that emits layout decisions to the event busConstraintChainAnalyzer— traces constraint chains from root to overflowing widgetExplanationEngine— generates plain-English explanations with severity levelsExplanationOverlay— debug overlay showing live layout explanationsFixSuggestionEngine— context-aware fix recommendations (Expanded, scrollable, BoxFit, etc.)
Causality Adapters
InstrumentedNotifier— ChangeNotifier mixin that emits causal eventsProviderAdapter— Provider/ChangeNotifierProvider integrationBlocAdapter— flutter_bloc BlocObserver integrationRiverpodAdapter— flutter_riverpod ProviderObserver integrationNetworkAdapter— Dio interceptor + http Client wrapper for API call tracing
DevTools Extension
ServiceExtensionBridge— 6 VM service extensions for real-time DevTools communicationTimelinePanel— filterable event timeline with type-based color codingGraphPanel— DAG visualization of the causal graphExplanationPanel— layout explanation viewer with fix suggestionsTrinityDevToolsExtension— tabbed DevTools panel entry pointTrinityDebugFab— floating action button for in-app inspection
Testing
- 232 passing tests across 22 test files
- Zero analysis warnings
- Integration tests verifying end-to-end event bus → causal graph flow