stacked_crashlytics
A package that provides a Crashlytics Service as well as a LogOuput.
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.
{"sdk":"flutter"}^3.13.1^4.3.6^2.5.0^3.4.3^5.4.0^5.0.0{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
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.
In the pubspec.yaml file under dependencies add
stacked_crashlytics: ^0.1.1
Register the service on to the locator
@StackedApp(
dependencies: [
...
LazySingleton(classType: CrashlyticsService),
...
),
],
)
@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(),
]),
);