pionne_flutter 0.3.1
pionne_flutter: ^0.3.1 copied to clipboard
Error monitoring SDK for Flutter — Pionne. Auto-captures Flutter framework errors and unhandled async errors, ships rich runtime context (Dart version, OS, device, locale), and tracks Release Health ( [...]
pionne_flutter #
Error monitoring SDK for Flutter — by Pionne.
Auto-captures Flutter framework errors and unhandled async/zone errors, ships rich runtime context (Dart version, OS, locale, debug/release mode). Single dependency: http. Wire-format compatible with @pionne/react-native, @pionne/web, @pionne/node.
🎫 Get your token #
Pionne is mobile-first: you sign up, create projects, and watch your error feed from the Pionne mobile app, not a web dashboard.
- Download the app:
- 🍎 App Store (coming soon)
- 🤖 Google Play (coming soon)
- Create your account (30 days free, no card required)
- + New project → pick Flutter → copy the token displayed (
pio_live_…) - Paste it into
Pionne.init(PionneOptions(token: ...))below
⚠️ The token is only shown once at project creation — load it from --dart-define=PIONNE_TOKEN=… at build time, never hard-code it in source.
Install #
dependencies:
pionne_flutter: ^0.1.0
flutter pub get
Usage #
import 'package:flutter/material.dart';
import 'package:pionne_flutter/pionne_flutter.dart';
void main() {
Pionne.init(PionneOptions(
token: 'pio_live_xxx',
release: '1.0.0',
));
// Wrap the app to also catch zone errors:
Pionne.runZonedGuarded(() => runApp(const MyApp()));
}
That's it. Flutter framework errors and unhandled async errors are now reported.
Manual capture #
try {
await processOrder();
} catch (e, stack) {
Pionne.captureException(e,
stackTrace: stack,
tags: {'feature': 'checkout'},
);
rethrow;
}
Pionne.captureMessage('user reached empty state', level: Level.info);
User identity, tags, opt-out #
Pionne.setUser('u_42');
Pionne.setTags({'tier': 'pro'});
Pionne.setEnabled(false);
License #
MIT