breakpad_client 0.0.2 copy "breakpad_client: ^0.0.2" to clipboard
breakpad_client: ^0.0.2 copied to clipboard

breakpad client for flutter desktop applications

example/lib/main.dart

import 'dart:ffi';

import 'package:breakpad_client/breakpad_client.dart' as breakpad_client;
import 'package:flutter/material.dart';

void main() {
  breakpad_client.setLogger((log) {
    debugPrint("logger: $log");
  });
  breakpad_client.initExceptionHandle("/tmp/crash/");
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Native Packages'),
        ),
        body: Center(
          child: ElevatedButton(
            child: const Text("crash"),
            onPressed: () {
              final pointer = Pointer.fromAddress(0);
              pointer.cast<Char>().value = 1;
            },
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
95
downloads

Publisher

verified publishermixin.dev

Weekly Downloads

breakpad client for flutter desktop applications

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter

More

Packages that depend on breakpad_client

Packages that implement breakpad_client