Flutter Dev Panel - Console Module

pub package

Console/Logs monitoring module for Flutter Dev Panel.

Features

  • Automatic capture of print, debugPrint, and Logger package output
  • Log level filtering (verbose, debug, info, warning, error)
  • Search and filter capabilities
  • Smart multi-line log merging for Logger package
  • Configurable log retention and auto-scroll
  • FAB display with error/warning count

Installation

dependencies:
  flutter_dev_panel: ^0.0.1
  flutter_dev_panel_console: ^0.0.1

Usage

import 'package:flutter_dev_panel/flutter_dev_panel.dart';
import 'package:flutter_dev_panel_console/flutter_dev_panel_console.dart';

void main() {
  FlutterDevPanel.initialize(
    modules: [
      ConsoleModule(),
      // Other modules...
    ],
  );

  runApp(
    DevPanelWrapper(
      child: MyApp(),
    ),
  );
}

Log Capture

The console module automatically captures:

  • Standard print() statements
  • debugPrint() output
  • Logger package logs (with smart multi-line merging)
  • Flutter framework errors

Configuration

// Configure log capture settings
DevLogger.instance.updateConfig(
  maxLogs: 500,        // Maximum logs to keep
  autoScroll: true,    // Auto-scroll to latest log
  pauseOnError: true,  // Pause auto-scroll on error
);

License

MIT