bugsnag_crashlytics 1.0.0 copy "bugsnag_crashlytics: ^1.0.0" to clipboard
bugsnag_crashlytics: ^1.0.0 copied to clipboard

discontinuedreplaced by: bugsnag_flutter
PlatformAndroidiOS

Flutter plugin for Bugsnag Crashlytics. It reports uncaught errors to the Bugsnag console.

example/lib/main.dart

import 'dart:async';

import 'package:bugsnag_crashlytics/bugsnag_crashlytics.dart';
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  BugsnagCrashlytics.instance.register(
      androidApiKey: "ANDROID_API_KEY",
      iosApiKey: "IOS_API_KEY",
      releaseStage: 'RELEASE_STAGE',
      appVersion: 'APP_VERSION');

  FlutterError.onError = BugsnagCrashlytics.instance.recordFlutterError;

  runZonedGuarded<Future<void>>(() async {
    runApp(
     MyApp());
  }, BugsnagCrashlytics.instance.recordError);
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: Text("Hello Bugsnag"),
        ),
      ),
    );
  }
}
7
likes
120
pub points
14%
popularity

Publisher

unverified uploader

Flutter plugin for Bugsnag Crashlytics. It reports uncaught errors to the Bugsnag console.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, stack_trace

More

Packages that depend on bugsnag_crashlytics