{"id":32290105,"url":"https://github.com/setgreet/setgreet-flutter-sdk","last_synced_at":"2026-02-22T00:01:39.475Z","repository":{"id":311976506,"uuid":"1034085442","full_name":"setgreet/setgreet-flutter-sdk","owner":"setgreet","description":"Setgreet Flutter SDK - Mobile app user onboarding","archived":false,"fork":false,"pushed_at":"2025-11-25T10:11:52.000Z","size":290,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-19T08:10:44.571Z","etag":null,"topics":["flutter","flutter-sdk","growth","mobile-app","monetization","onboarding-templates","user-engagement","user-onboarding","user-retention"],"latest_commit_sha":null,"homepage":"https://setgreet.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setgreet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-07T20:21:37.000Z","updated_at":"2026-02-03T13:09:21.000Z","dependencies_parsed_at":"2025-08-28T04:52:12.974Z","dependency_job_id":"2c590c8b-3d00-409f-befa-9c5e65b4d8b4","html_url":"https://github.com/setgreet/setgreet-flutter-sdk","commit_stats":null,"previous_names":["setgreet/setgreet-flutter-sdk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/setgreet/setgreet-flutter-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setgreet%2Fsetgreet-flutter-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setgreet%2Fsetgreet-flutter-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setgreet%2Fsetgreet-flutter-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setgreet%2Fsetgreet-flutter-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setgreet","download_url":"https://codeload.github.com/setgreet/setgreet-flutter-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setgreet%2Fsetgreet-flutter-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","flutter-sdk","growth","mobile-app","monetization","onboarding-templates","user-engagement","user-onboarding","user-retention"],"created_at":"2025-10-23T02:47:18.313Z","updated_at":"2026-02-22T00:01:39.444Z","avatar_url":"https://github.com/setgreet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setgreet Flutter SDK\n\n[![pub package](https://img.shields.io/pub/v/setgreet.svg)](https://pub.dev/packages/setgreet)\n\nSetgreet Flutter SDK allows you to show Setgreet flows in your Flutter app.\n\n## Requirements\n\n- Flutter: \u003e=3.0.0\n- Dart: \u003e=3.0.0\n- Android: minSdkVersion 21\n- iOS: 11.0+\n\n## Installation\n\n### 1. Install the package\n\nAdd `setgreet` as a dependency in your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  setgreet: ^0.1.0\n```\n\nThen run:\n\n```bash\nflutter pub get\n```\n\n### 2. iOS Setup\n\n#### Install CocoaPods Dependencies\n\nThe iOS SDK will be automatically included via CocoaPods. Make sure to run:\n\n```bash\ncd ios \u0026\u0026 pod install\n```\n\n### 3. Android Setup\n\nNo additional setup required for Android.\n\n## Usage\n\n### Initialization\n\n- Setgreet App Key: You can find your App Key at [Apps page](https://app.setgreet.com/apps).\n\nInitialize the SDK in your Flutter app:\n\n```dart\nimport 'package:setgreet/setgreet.dart';\n\nvoid main() async {\n  WidgetsFlutterBinding.ensureInitialized();\n\n  try {\n    await Setgreet.initialize(\n      'your_app_key_here',\n      config: SetgreetConfig(\n        debugMode: true, // Enable for development\n      ),\n    );\n  } catch (e) {\n    print('Failed to initialize Setgreet: $e');\n  }\n\n  runApp(MyApp());\n}\n```\n\n### Identify User\n\nIdentifies a user for Setgreet analytics and flow management.\n\n**Parameters:**\n\n- `userId` (String): The unique identifier for the user\n- `attributes` (Optional): Additional user attributes\n- `operation` (Optional): Operation type ('create' or 'update', defaults to 'create')\n- `locale` (Optional): User's locale (e.g., \"en-US\"). If not provided, uses device's default locale\n\n```dart\nawait Setgreet.identifyUser(\n  'user123',\n  attributes: {\n    'plan': 'premium',\n    'signup_date': '2025-08-27',\n  },\n  operation: 'create',\n  locale: 'en-US',\n);\n```\n\n### Reset User\n\nClears user identification data and resets user session state for logout scenarios.\n\n```dart\nSetgreet.resetUser();\n```\n\n### Show Flow\n\n- Setgreet Flow ID: The flow ID is a unique identifier for the flow you want to show. You can get the flow ID from the flow's URL at the web app. For example, if the flow URL is `https://app.setgreet.com/flows/1234`, the flow ID is `1234`.\n\nTo show the Setgreet flow, call the following method:\n\n```dart\n// Show a specific flow\nawait Setgreet.showFlow('your_flow_id');\n```\n\n### Track Screen\n\nTracks a screen view for analytics and potential flow triggers.\n\n**Parameters:**\n\n- `screenName` (String): The name of the screen being viewed\n- `properties` (Optional): Additional properties associated with the screen view\n\n```dart\n// Track screen view\nawait Setgreet.trackScreen('home_screen');\n\n// With properties\nawait Setgreet.trackScreen(\n  'product_details',\n  properties: {\n    'product_id': '12345',\n    'category': 'electronics',\n  },\n);\n```\n\n### Track Event\n\nTracks custom events for analytics and flow triggers.\n\n**Parameters:**\n\n- `eventName` (String): The name of the custom event\n- `properties` (Optional): Additional properties associated with the event\n\n```dart\n// Simple event\nawait Setgreet.trackEvent('button_clicked');\n\n// Event with properties\nawait Setgreet.trackEvent(\n  'purchase_completed',\n  properties: {\n    'product_id': '12345',\n    'amount': 99.99,\n    'currency': 'USD',\n  },\n);\n```\n\n### General Issues\n\nIf you continue to have issues, please [open an issue](https://github.com/setgreet/setgreet-flutter-sdk/issues) with:\n\n- Your Flutter version\n- iOS/Android version\n- Error messages\n- Steps to reproduce\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetgreet%2Fsetgreet-flutter-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetgreet%2Fsetgreet-flutter-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetgreet%2Fsetgreet-flutter-sdk/lists"}