Search packages, repositories and app categories

Package detailsv0.2.2

stacked_crashlytics

A package that provides a Crashlytics Service as well as a LogOuput.

AndroidiOSmacOS
30-day downloads
85
Likes
5
Pub points
90

Install package

flutter pub add stacked_crashlytics

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

stacked_crashlytics is a Flutter package that integrates Crashlytics into your app, offering a dedicated service for crash reporting and log output. It simplifies error tracking by automatically capturing unhandled exceptions and sending them to Crashlytics. The package also provides a structured logging mechanism, enabling developers to send custom logs with context. Designed for seamless use within the Stacked framework ecosystem, it enhances debugging and monitoring across Android, iOS, and macOS platforms.

Use cases

  • Real-time crash monitoring
  • Application error tracking
  • Debugging with contextual logs
  • Integration with Stacked framework
  • Cross-platform crash reporting

Key features

  • Built-in Crashlytics service
  • Structured log output
  • Automatic exception capture
  • Support for Android, iOS, macOS
  • Easy integration with Stacked architecture

Suitable for

  • Flutter apps using Stacked framework
  • Teams prioritizing crash analytics
  • Developers needing cross-platform crash reporting
  • Apps requiring detailed logging
  • Projects focused on performance and stability

Considerations

  • Requires Crashlytics setup in Firebase
  • Limited to Stacked ecosystem users
  • Needs Firebase configuration
  • May require additional dependency management
  • Not standalone without Stacked components

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Stacked Crashlytics Service

A service accompanied with a LogOutput that tracks all warnings as non-fatal crash reports and all errors as fatal crash reports. This makes use of the Firebase Crashlytics service.

How To use

  • In the pubspec.yaml file under dependencies add

     stacked_crashlytics: ^0.1.1
    
  • Register the service on to the locator

    • If you want to register the service
    @StackedApp(
        dependencies: [
            ...
            LazySingleton(classType: CrashlyticsService),
            ...
            ),
        ],
    )
    
    • If you are presolving into an async instance, you can use
    @StackedApp(
        dependencies: [
            ...
            Presolve(
            classType: CrashlyticsService,
            presolveUsing: CrashlyticsService.getInstance,
            ),
          ],
        )
    

    Note: Don't forget to run

    flutter pub run build_runner build --delete-conflicting-outputs

  • Add the log Output inside your logger under outputs inside multiple logger output like so

    Logger(
    ...
        output: MultipleLoggerOutput([
        ...
        CrashlyticsOutput(),
        ]),
    );
    

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.