Flutter
Install talaria_flutter 0.3.1 and bootstrap with a publishable key.
talaria_flutter 0.3.1 re-exports talaria. Flutter init accepts only a publishable tal_pk_… key, from --dart-define=TALARIA_BROWSER_API_KEY. A tal_sk_ or tal_mon_ key disables Talaria with one warning. The app still runs, and no error hooks are installed.
Install#
dependencies:
talaria_flutter: ^0.3.1Initialise#
import 'package:flutter/material.dart';
import 'package:talaria_flutter/talaria_flutter.dart';
Future<void> main() async {
await TalariaFlutter.runZonedApp(
TalariaOptions(
apiKey: const String.fromEnvironment('TALARIA_BROWSER_API_KEY'),
minLevel: SeverityLevel.warning,
),
const MyApp(),
);
}Pass TalariaNavigatorObserver on MaterialApp. Leave url unset to use https://ingest-<cell>.newtalaria.com.
Verify#
await Talaria.captureException(Exception('Talaria test error'), stackTrace: StackTrace.current);Run this once, then open Issues in the dashboard. The test error shows as a new issue in the key's environment. Nothing there? See troubleshooting.
Next#
See configuration, errors, tracing, navigation, and troubleshooting.