Flutter quickstart
Connect a Flutter app for iOS or Android using the source preview.
Add the preview package
Get the Flutter SDK checkout from your team. Add it as a path dependency in your pubspec.yaml and run flutter pub get.
dependencies:
zerobugs:
path: ../path/to/zerobugs-flutter
On Android, make sure the release app’s manifest declares android.permission.INTERNET.
Present the report form
Create the reporter with the SDK token for your project. Call the presenter from your feedback action with a mounted widget context.
import 'package:zerobugs/feedback.dart';
import 'package:zerobugs/zerobugs.dart';
final reporter = ZeroBugsReporter(
sdkToken: const String.fromEnvironment('ZEROBUGS_SDK_TOKEN'),
);
await showZeroBugsFeedback(
context,
reporter: reporter,
appName: 'Example app',
);
Send and find a test report
Run the app with its configured SDK token, open the feedback form, and submit a test description. Then find it in Reports.