{"id":14973081,"url":"https://github.com/firebase/snippets-flutter","last_synced_at":"2026-04-01T20:43:02.283Z","repository":{"id":38340881,"uuid":"467218868","full_name":"firebase/snippets-flutter","owner":"firebase","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-09T17:36:20.000Z","size":225,"stargazers_count":46,"open_issues_count":6,"forks_count":15,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-28T11:02:06.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/firebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-03-07T18:47:13.000Z","updated_at":"2025-03-24T11:50:24.000Z","dependencies_parsed_at":"2024-05-30T00:58:00.615Z","dependency_job_id":"b660a72e-2a75-45bd-8f13-138640c1738f","html_url":"https://github.com/firebase/snippets-flutter","commit_stats":{"total_commits":39,"total_committers":12,"mean_commits":3.25,"dds":0.6923076923076923,"last_synced_commit":"2d9d956bd16dddf7ba9178f83bbd1c7f588f34c9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firebase/snippets-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firebase%2Fsnippets-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firebase%2Fsnippets-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firebase%2Fsnippets-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firebase%2Fsnippets-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firebase","download_url":"https://codeload.github.com/firebase/snippets-flutter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firebase%2Fsnippets-flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2024-09-24T13:48:05.271Z","updated_at":"2026-04-01T20:43:02.262Z","avatar_url":"https://github.com/firebase.png","language":"Dart","readme":"# Firebase Flutter Snippets\n\nThis repository holds code snippets used in Flutter documentation\non [firebase.google.com](https://firebase.google.com/docs/).\n\nThese snippets are part of our documentation and best read in the context of a\ndocumentation page rather than used directly.\n\nEach snippet has a \"region tag\" which is defined by `// [START tag]`\nand `// [END tag]` comments. The code between the tags can be included in our\ndocumentation. Keeping the code on GitHub, rather than hard-coded into the HTML\nof our documentation, allows us to ensure the code is correct and up to date.\n\n## Set up / Running Instructions - WIP\n\n- installed flutter, intellij, intellij plugins\n- created firebase project, downloaded firebase CLI, installed flutterfirecli\n- `flutter create firestore-snippets \u0026\u0026 cd firestore-snippets`\n- `flutterfire-configure`\n\n## Snippet structure\n\n**Note**: Most snippets follow this structure, but in some cases multiple\nsnippets are located in a single function. In this case, the function name\nrepresents which snippet the function name starts on.\n\nEach Firebase product (that requires Flutter snippets) has its own file located\nin the dir `apps/firestore_snippets/lib/snippets`.\n\nEach of these files defines a class called [Firebase Product Name]Snippets.\nThese classes have a separate function for each snippet. These functions follow\nthe naming convention of `firebaseDocsPageName_snippetTitle`. For\nexample: `FirestoreSnippets.getStarted_addData`. Each snippet is also wrapped by\ncomments which define the beginning and ending of the snippet, and generally\nexcludes the function names. The code in this region, between the two comments,\nis the code that appears in the Firebase documentation.\n\nExample:\n\nSee translated snippet in\nthe [Firebase documentation](https://firebase.google.com/docs/firestore/quickstart#add_data)\n\n```dart\n  void getStarted_addData() async {\n  // [START get_started_add_data_1]\n  // Create a new user with a first and last name\n  final user = \u003cString, dynamic\u003e{\n    \"first\": \"Ada\",\n    \"last\": \"Lovelace\",\n    \"born\": 1815\n  };\n\n  // Add a new document with a generated ID\n  db.collection(\"users\").add(user).then((DocumentReference doc) =\u003e\n      print('DocumentSnapshot added with ID: ${doc.id}'));\n  // [END get_started_add_data_1]\n}\n```\n\n[comment]: \u003c\u003e (## Example)\n\n[comment]: \u003c\u003e (TODO: ewindmill@ fill this in when first snippets are live.)\n\n[comment]: \u003c\u003e (## Contributing)\n\n[comment]: \u003c\u003e (TODO: ewindmill@ create the \"contributing\" docs)\n\n[comment]: \u003c\u003e (We love contributions! See [CONTRIBUTING.md]\u0026#40;./CONTRIBUTING.md\u0026#41; for guidelines.)\n\n[comment]: \u003c\u003e (## Build Status)\n\n[comment]: \u003c\u003e ([![Actions Status][gh-actions-badge]][gh-actions])\n\n[comment]: \u003c\u003e ([gh-actions]: https://github.com/firebase/snippets-web/actions)\n\n[comment]: \u003c\u003e ([gh-actions-badge]: https://github.com/firebase/snippets-web/workflows/CI%20Tests/badge.svg)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirebase%2Fsnippets-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirebase%2Fsnippets-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirebase%2Fsnippets-flutter/lists"}