Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrashX

A Flutter plugin for CrashX analytics. specific for flutter apps.

Features

  • Automatic Error Catching: Hooks into FlutterError.onError and PlatformDispatcher.instance.onError to capture uncaught exceptions.
  • Metadata Collection: Automatically collects device info (OS, Model, Version) and App Version.
  • Manual Reporting: Manually report errors using CrashX.recordError.
  • Offline Support: (Coming Soon)

Getting Started

  1. Add crashx to your pubspec.yaml dependencies.
  2. Initialize the plugin in your main.dart.
import 'package:flutter/material.dart';
import 'package:crashx/crashx.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // Initialize CrashX with your API Key
  await CrashX.init(
    apiKey: "YOUR_PROJECT_API_KEY",
  );

  runApp(const MyApp());
}

Usage

Automatic capturing

Once initialized, CrashX automatically captures uncaught errors in your Flutter app.

Manual capturing

You can also manually report errors:

try {
  // Some dangerous code
} catch (e, stack) {
  CrashX.recordError(e, stack);
}

About

Real-time crash analytics and error tracking for Flutter & Web ecosystems. Built on a robust Java & Python architecture.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages