bluedev.in hello@bluedev.in

Flutter package

Bugs

Logging, global error handling and in-app bug reporting for Flutter, with the UI included.

MIT AndroidiOSLinuxmacOSWindows

Overview

bugs covers three things most apps end up wiring together separately: structured logging, global error capture, and a way for users to actually send a bug report. It ships with ready-made UI too, a BugReportForm and a BugReportList, so there's a working reporting flow from the first import.

Features

  • Multiple log levels (Debug, Info, Warning, Error, Fatal) with file and console output
  • Bug report creation with automatic device and app info collection, plus attachments
  • Global Flutter and platform error capture using zone-based management
  • Pre-built BugReportForm and BugReportList widgets
  • Share reports and logs through the system share dialog, in multiple export formats

Installation

pubspec.yaml
dependencies:
  bugs: ^1.0.0

Usage

main()
await BugReportSystem.initialize(
  enableGlobalErrorHandling: true,
);
Logging
BugReportSystem.debug('Debug message');
BugReportSystem.info('User logged in', metadata: {'userId': 123});
Error reporting
BugReportSystem.reportError(e, stackTrace: stackTrace);

Built on connectivity_plus, device_info_plus, intl, package_info_plus, path_provider and share_plus.

Read this offline

The same write-up as a .docx file, if you'd rather share it or keep a copy.

Download .docx

Links