Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update wizard
  • Loading branch information
PeloWriter committed Mar 4, 2021
commit fbf1e0e65162d183c80abef14332fa0d3f267374
12 changes: 9 additions & 3 deletions src/wizard/flutter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ support_level: production
type: framework
---

Get the SDK from [pub.dev](https://pub.dev/packages/sentry_flutter) by adding the following to your `pubspec.yaml`:
Sentry captures data by using an SDK within your application’s runtime. Add the following to your `pubspec.yaml`:

```yml {filename:pubspec.yaml}
dependencies:
Expand All @@ -25,10 +25,12 @@ Future<void> main() async {
},
appRunner: () => runApp(MyApp()),
);
}

// or define SENTRY_DSN via Dart environment variable (--dart-define)
}
```

Capture a test exception:
Then create an intentional error, so you can test that everything is working:

```dart
import 'package:sentry/sentry.dart';
Expand All @@ -42,3 +44,7 @@ try {
);
}
```

If you're new to Sentry, use the email alert to access your account and complete a product tour.

If you're an existing user and have disabled alerts, you won't receive this email.