This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:webview_flutter/webview_flutter.dart'; | |
import 'package:oauth2/oauth2.dart' as oauth2; | |
import 'package:flutter_appauth/flutter_appauth.dart'; | |
import 'dart:async'; | |
class AuthTest { | |
Future<AuthorizationTokenResponse> createClient(BuildContext context) async { | |
const String clientId = 'clientName'; | |
const String redirectUrl = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: ElevatedButton( | |
child: const Text('async throws'), | |
onPressed: () => asyncThrows(), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
sentry_flutter: ^6.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:sentry_flutter/sentry_flutter.dart'; | |
const String _exampleDsn = | |
'https://yourSentryDsnHere@sentry.com'; | |
Future<void> main() async { | |
await SentryFlutter.init( | |
(options) { | |
options.dsn = _exampleDsn; | |
options.tracesSampleRate = 1.0; |