{"schemaVersion":1,"title":"Flutter setup","url":"https://appgram.dev/docs/guides/sdks/flutter","markdownUrl":"https://appgram.dev/docs/format-md/guides/sdks/flutter.md","jsonUrl":"https://appgram.dev/docs/agent/pages/guides/sdks/flutter.json","version":"current","locale":"en","markdown":"# Flutter setup\n\nConfigure the Flutter provider and render a feedback screen.\n\nUse `appgram_flutter` for Flutter applications. Version 1.0.0 declares Dart 3+ and Flutter 3.10+ requirements.\n\n## Install\n\n```bash\nflutter pub add appgram_flutter:^1.0.0\n```\n\nThe package declares its Riverpod and HTTP dependencies. Keep the resolved package versions in your application's lockfile.\n\n## Show a feedback screen\n\nReplace the project details in `lib/main.dart`:\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:appgram_flutter/appgram_flutter.dart';\n\nvoid main() {\n  runApp(\n    const AppgramProvider(\n      config: AppgramConfig(\n        projectId: 'YOUR_PROJECT_ID',\n        orgSlug: 'your-org',\n        projectSlug: 'your-project',\n      ),\n      child: MaterialApp(\n        home: Scaffold(\n          body: SafeArea(child: WishList()),\n        ),\n      ),\n    ),\n  );\n}\n```\n\n`AppgramProvider` creates the SDK's Riverpod scope and configuration. Keep AppGram widgets inside that provider. `WishList` displays your project's requests with its built-in loading, error, filtering, and pagination controls.\n\nCreate and approve the sample request from [Getting started](/guides/getting-started), confirm it appears in `WishList`, then cast a vote and refresh the dashboard to verify persistence. Check project selection and approval if the screen receives an empty successful response.\n\n## Configure other surfaces\n\nSupply `orgSlug` and `projectSlug` for release routing. The API origin override is `apiUrl`; its default is `https://api.appgram.dev`. Do not add `/api/v1` to that origin.\n\nThe package also exports roadmap, help, support, status, survey, contact-form, and blog widgets and providers. Read the specific symbol before wiring callbacks or request models.\n\nDevice fingerprinting is enabled by default. Set `enableFingerprinting: false` when your integration should not initialize it. Read [Customer identity and client credentials](/guides/client-identity).\n\n## Reference coverage\n\nThe [Flutter reference](/flutter-sdk) currently imports the package's existing Dartdoc symbol index. It lists public classes and functions, but has less signature detail than a full Dartdoc HTML archive. This setup guide supplies a complete first screen; consult the linked package source when a symbol needs details absent from the index.\n\n[Published package and source](https://pub.dev/packages/appgram_flutter) · [Troubleshooting](/guides/troubleshooting)\n\n","contentLocale":"en","isFallback":false,"authorship":{"authors":[],"contributors":[],"reviewedBy":[]}}