Flutter SDK
Capture screenshots and submit feedback from your Flutter app.
Quickstart
Get your first feedback submission in under 5 minutes.
Install the SDK
Add the SDK to your Flutter project.
flutter pub add mcpfeedback_flutterInitialize in your app
Add initialization to your app's main widget.
import 'package:mcpfeedback_flutter/mcpfeedback.dart';
void main() {
MCPFeedback.initialize(
apiKey: 'YOUR_API_KEY',
siteKey: 'YOUR_SITE_KEY',
);
runApp(MyApp());
}Launch the feedback UI
Call show() to open the feedback form, or let users shake to report.
MCPFeedback.show(context);Verify it works
Submit a test feedback item and check your MCPFeedback dashboard. It should appear within seconds.
The SDK also supports shake-to-report. Users can shake their device to open the feedback form.
Find your API key in Dashboard > Settings > API Keys
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
| apiKey | String | required | Your MCPFeedback API key |
| siteKey | String | required | Your site identifier |
| shakeEnabled | bool | true | Enable shake-to-report gesture |
| apiBaseUrl | String? | null | Custom API base URL (defaults to production) |
API Reference
MCPFeedback.initialize(...)
Configure the SDK with your API key and site key. Must be called before any other SDK methods.
MCPFeedback.show(BuildContext context)
Opens the feedback capture flow. Takes a screenshot of the current screen and presents the feedback form.
MCPFeedback.dispose()
Clean up SDK resources. Call when the app is shutting down or feedback is no longer needed.