{"id":15548995,"url":"https://github.com/lohanidamodar/flutter_firebase_helpers","last_synced_at":"2025-04-30T15:50:06.672Z","repository":{"id":56828802,"uuid":"249153869","full_name":"lohanidamodar/flutter_firebase_helpers","owner":"lohanidamodar","description":"Firebase helper library for flutter","archived":false,"fork":false,"pushed_at":"2024-08-18T09:50:38.000Z","size":54,"stargazers_count":10,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T15:49:54.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/firebase_helpers","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lohanidamodar.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}},"created_at":"2020-03-22T09:49:48.000Z","updated_at":"2024-08-18T09:50:42.000Z","dependencies_parsed_at":"2024-08-18T11:12:08.266Z","dependency_job_id":null,"html_url":"https://github.com/lohanidamodar/flutter_firebase_helpers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_firebase_helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_firebase_helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_firebase_helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_firebase_helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lohanidamodar","download_url":"https://codeload.github.com/lohanidamodar/flutter_firebase_helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251734540,"owners_count":21635155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-02T13:25:30.121Z","updated_at":"2025-04-30T15:50:06.604Z","avatar_url":"https://github.com/lohanidamodar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebase_helpers\n\nA package that provides various Google Firebase related services helpers. Provides helpers to perform queries on firestore, firebase auth etc.\n\n![Publish](https://github.com/lohanidamodar/flutter_firebase_helpers/workflows/Publish/badge.svg)\n\n## Getting Started\n\n### Installation\n\nAdd to pubspec.yaml:\n\n```yaml\ndependencies:\n  firebase_helpers: latest\n```\n\n### Using firestore service\n```dart\nimport 'package:firebase_helpers/firebase_helpers';\n\nclass Note {\n  final String title;\n  final String id;\n  final String description;\n  final DateTime createdAt;\n  final String userId;\n  Note({this.title, this.id, this.description, this.createdAt, this.userId});\n  Note.fromDS(String id, Map\u003cString, dynamic\u003e data)\n      : id = id,\n        title = data['title'],\n        description = data['description'],\n        userId = data['user_id'],\n        createdAt = data['created_at']?.toDate();\n  Map\u003cString, dynamic\u003e toMap() =\u003e {\n        \"title\": title,\n        \"description\": description,\n        \"created_at\": createdAt,\n        \"user_id\": userId,\n      };\n}\n\nDatabaseService\u003cNote\u003e notesDb = DatabaseService\u003cNote\u003e(\"notes\",fromDS: (id,data) =\u003e  Note.fromDS(id,data), toMap:(note) =\u003e note.toMap() );\n\nNote note = Note(\n    title: \"Hello Note\",\n    description: \"This is notes description\",\n);\nnotesDb.createItem(note); //this function will add our note item to the firestore database\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flohanidamodar%2Fflutter_firebase_helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flohanidamodar%2Fflutter_firebase_helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flohanidamodar%2Fflutter_firebase_helpers/lists"}