debug_console 0.0.1 copy "debug_console: ^0.0.1" to clipboard
debug_console: ^0.0.1 copied to clipboard

A console for debugging Flutter apps. Check the console for prints and errors, while you're testing it, all within your app. Make your own logging and check the StackTraces.

example/main.dart

import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:debug_console/debug_console.dart';

void main() {
  DebugConsole.listen(() {
    runApp(
      MaterialApp(
        debugShowCheckedModeBanner: false,
        home: DebugConsolePopup(
          child: Scaffold(
            body: Center(
              child: Text('Hello World'),
            ),
          ),
        ),
      ),
    );

    Future.delayed(const Duration(seconds: 3), () async {
      print('Hello World');
      await Future.delayed(const Duration(milliseconds: 2000));
      DebugConsole.debug('Debug message');
      await Future.delayed(const Duration(milliseconds: 1500));
      DebugConsole.error('Error message, with StackTrace',
          stackTrace: StackTrace.current);
      await Future.delayed(const Duration(milliseconds: 1500));
      availableCameras().then((cameras) =>
          CameraController(cameras.first, ResolutionPreset.medium));
    });
  });
}
6
likes
140
pub points
74%
popularity

Publisher

verified publisherdrafakiller.com

A console for debugging Flutter apps. Check the console for prints and errors, while you're testing it, all within your app. Make your own logging and check the StackTraces.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

expandable, flutter, rxdart

More

Packages that depend on debug_console