niddler_dart
1.6.0, released 4 years ago by chimerapps.com
Network inspector for Dart/Flutter that captures and visualizes HTTP requests during development.
What it does
It starts a local Niddler server that intercepts HTTP traffic from your app and forwards it to the Niddler IntelliJ/Android Studio plugin. It can capture request stack traces and replay responses from saved HAR files.
AI-written summary of version 1.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to debug and inspect network calls in a Flutter or Dart app
- You want request‑site stack traces or the ability to replay responses
- You are developing on desktop/mobile and can run the IntelliJ plugin
Skip it when
- Running in production where performance overhead matters
- You cannot install the Niddler IDE plugin
- You prefer a pure logging solution without a UI
Strengths
- Deep integration with IntelliJ/Android Studio plugin
- Supports stack‑trace capture and HAR replay
- Works across all major Flutter platforms
- Provides explicit debugger‑wait functionality
Weaknesses
- Adds runtime overhead, not suited for release builds
- Requires additional IDE plugin setup
- Limited to Dart/Flutter ecosystem
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Add the package, create a NiddlerBuilder, call start() (optionally with waitForDebugger), and install the Niddler plugin in IntelliJ/Android Studio. Wrap main with Chain.capture for full stack‑trace support.
import 'package:niddler_dart/niddler_dart.dart';
import 'package:stack_trace/stack_trace.dart';
void main() async {
await Chain.capture(() async {
final niddler = NiddlerBuilder()
..bundleId = 'com.example.app'
..includeStackTrace = true
.build();
await niddler.start();
niddler.install();
// make HTTP requests here
await niddler.stop();
});
}Alternatives
Packages that do the same job and could replace niddler_dart.
- pretty_dio_logger
Lightweight logger that prints HTTP requests/responses without needing a separate IDE plugin
50Compare - talker_logger
Provides structured logging and can be combined with other Talker tools for debugging
90Compare
Works with
Packages commonly used together with niddler_dart: ones it builds on, ones built on it, and its own family.
- stack_traceniddler_dart depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- synchronizedniddler_dart depends on itLock mechanism to prevent concurrent access to asynchronous code.
- dart_service_announcementniddler_dart depends on itHelper libraries for creating discoverable development services.
- computerniddler_dart depends on itEasy to use pool of concurrent workers with a compute-like API.
- storage_inspectorSame familyFacilitates inspection and modification of local storage inside a Flutter app.