netify_core 3.0.0
netify_core: ^3.0.0 copied to clipboard
Core network inspection functionality for Flutter. Client-agnostic foundation for Netify adapters.
Changelog #
3.0.0 - 2025-12-23 #
🎉 Major Release - Multi-Client Architecture #
This release introduces a completely new architecture that separates core functionality from HTTP client-specific implementations.
Breaking Changes
- Core functionality extracted into standalone
netify_corepackage - No longer includes HTTP client implementations
- Must be used with an adapter package (
netify_dio,netify_http, etc.)
New Features
- ✅ Client-Agnostic Core - No HTTP client dependencies
- ✅ NetifyAdapter Base Class - Foundation for all adapters
- ✅ NetifyInterface - Standardized interface for UI access
- ✅ RxDart Integration - Real-time streams with
BehaviorSubject - ✅ Callbacks System - Integration hooks for monitoring services
NetifyCallbacksclass withonRequest,onResponse,onError,onSlowRequest
- ✅ Smart Filters - Control what gets captured
NetifyFiltersclass with status codes, slow requests, ignore patterns
- ✅ Complete UI Components
NetifyPanel- Main inspection panelLogDetailPage- Detailed log viewerInsightsPage- Analytics pageNetifyBubble- Floating bubble widget- All supporting widgets (badges, cards, viewers, etc.)
- ✅ Repository Pattern - Clean data management
LogRepositoryinterfaceLogRepositoryImplwith RxDart streams
- ✅ Universal NetworkLog - Works with any HTTP client
Architecture
The new architecture follows a modular design:
netify_core (this package)
↓
netify_dio, netify_http, netify_graphql, etc.
↓
Your App
Dependencies
flutter- Flutter SDKscreenshot: ^2.1.0- For share as image functionalityrxdart: ^0.27.0- For real-time streams
No HTTP client dependencies ✅
Usage
This package is not meant to be used directly. Instead, use one of the adapter packages:
// For Dio
import 'package:netify_dio/netify_dio.dart';
await NetifyDio.init(dio: dio);
// For HTTP
import 'package:netify_http/netify_http.dart';
await NetifyHttp.init(client: client);
Benefits
- Zero Dependency Bloat - Users only install the HTTP client they use
- Easy to Extend - Add new HTTP clients by creating adapters
- Backward Compatible - Adapters maintain similar API to v2.x
- Type-Safe - Each adapter handles client-specific types
- Maintainable - Core logic separated from client-specific code
Notes
- Compatible with Flutter 3.0.0+
- Dart SDK 3.0.0+
- Requires an adapter package to function