flutter_mayday 0.2.0 copy "flutter_mayday: ^0.2.0" to clipboard
flutter_mayday: ^0.2.0 copied to clipboard

On-device crash reporting for Flutter. Captures device, session, network, logs, errors, and performance into a single shareable .blackbox file — no server, no account, no dashboard required.

example/lib/main.dart

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

import 'black_box_setup.dart';
import 'home_screen.dart';

// Shared navigator key — passed to both BlackBox and MaterialApp so the
// overlay can push routes even though it wraps above MaterialApp.
final _navigatorKey = GlobalKey<NavigatorState>();

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await setupBlackBox();
  BlackBox.setNavigatorKey(_navigatorKey);
  runApp(const DemoApp());
}

class DemoApp extends StatelessWidget {
  const DemoApp({super.key});

  @override
  Widget build(BuildContext context) {
    return BlackBoxScope(
      child: MaterialApp(
        title: 'BlackBox Demo',
        debugShowCheckedModeBanner: false,
        navigatorKey: _navigatorKey,
        navigatorObservers: [BlackBox.navigationObserver],
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(
            seedColor: const Color(0xff5b8dee),
            brightness: Brightness.dark,
          ),
          useMaterial3: true,
        ),
        home: const HomeScreen(),
      ),
    );
  }
}
1
likes
110
points
80
downloads

Documentation

API reference

Publisher

verified publisheryudiz.com

Weekly Downloads

On-device crash reporting for Flutter. Captures device, session, network, logs, errors, and performance into a single shareable .blackbox file — no server, no account, no dashboard required.

Repository (GitHub)
View/report issues

Topics

#crash-reporting #debugging #logging #monitoring #error-handling

License

MIT (license)

Dependencies

archive, battery_plus, connectivity_plus, device_info_plus, dio, flutter, flutter_bloc, get, package_info_plus, path_provider, sensors_plus, share_plus, shared_preferences, synchronized

More

Packages that depend on flutter_mayday

Packages that implement flutter_mayday