comon_logger_dio_flutter 0.1.2 copy "comon_logger_dio_flutter: ^0.1.2" to clipboard
comon_logger_dio_flutter: ^0.1.2 copied to clipboard

Flutter UI renderer for comon_logger Dio HTTP logs.

comon_logger_dio_flutter #

Flutter renderer package for Dio HTTP logs created by comon_logger_dio.

Features #

HttpLogRecordRenderer turns structured HTTP records into rich log cards with:

  • method and status badges
  • duration display
  • full URL section
  • collapsible headers and bodies
  • pretty JSON rendering
  • copy-friendly formatted output

Installation #

flutter pub add comon_logger_dio_flutter

Quick Start #

import 'package:comon_logger/comon_logger.dart';
import 'package:comon_logger_dio_flutter/comon_logger_dio_flutter.dart';
import 'package:comon_logger_flutter/comon_logger_flutter.dart';

final historyHandler = HistoryLogHandler();

ComonLoggerScreen(
  handler: historyHandler,
  renderers: const [
    HttpLogRecordRenderer(showRequest: false),
  ],
)

Usage notes #

  • Works best with records produced by ComonDioInterceptor
  • Automatically matches LogType.network records with the expected extra payload
  • Can be combined with other LogRecordRenderers in the same log screen
Package Why
comon_logger_dio Produces the HTTP records rendered here
comon_logger_flutter Provides ComonLoggerScreen and renderer host
comon_logger Provides LogRecord, LogType, and logger primitives