{"id":15154047,"url":"https://github.com/s0punk/flutter_fit_utils_config","last_synced_at":"2025-03-14T17:14:15.031Z","repository":{"id":241025336,"uuid":"803526159","full_name":"s0punk/flutter_fit_utils_config","owner":"s0punk","description":"A flutter package to easily manage configurations. This package is part of the flutter_fit_utils environement.","archived":false,"fork":false,"pushed_at":"2024-05-24T13:31:09.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T13:03:47.152Z","etag":null,"topics":["configuration-management","firebase","flutter"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_fit_utils_config","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/s0punk.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":"2024-05-20T22:28:57.000Z","updated_at":"2024-12-27T09:57:25.000Z","dependencies_parsed_at":"2024-06-03T06:17:09.616Z","dependency_job_id":null,"html_url":"https://github.com/s0punk/flutter_fit_utils_config","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.4545454545454546,"last_synced_commit":"ed2db4b4fa451890ecf396bf3d9727e4ac535928"},"previous_names":["s0punk/flutter_fit_utils_config"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0punk%2Fflutter_fit_utils_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0punk%2Fflutter_fit_utils_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0punk%2Fflutter_fit_utils_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0punk%2Fflutter_fit_utils_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s0punk","download_url":"https://codeload.github.com/s0punk/flutter_fit_utils_config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615629,"owners_count":20319733,"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":["configuration-management","firebase","flutter"],"created_at":"2024-09-26T17:01:33.162Z","updated_at":"2025-03-14T17:14:14.999Z","avatar_url":"https://github.com/s0punk.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"A flutter package to easily manage configurations. This package is part of the flutter_fit_utils environement.\n\n![flutter_fit_utils drawio](https://github.com/s0punk/flutter_fit_utils_provider/assets/59456672/74b056f7-f85d-4635-891c-fd9feee99cfb)\n\n## Features\n\nUse this package to:\n- Get uniform classes for your different configurations\n- Create configurations issued from Firebase Remote Config\n\n## Getting started\n\n- Go inside your pubspec.yaml file\n- Add this line under the dependencies:\n```\nflutter_fit_utils_config: ^1.0.0\n```\n- Get dependencies\n```\nflutter pub get\n```\n\n## Usage\n\nTo read values from your Firebase Remote Config, simply create a class that extends RemoteConfig:\n\n```dart\n/// Example config class.\nclass CharacterConfig extends RemoteConfig {\n  int speed = 0;\n  int attack = 0;\n\n  @override\n  void read() {\n    speed = appConfig.getInt(\"speed\");\n    attack = appConfig.getInt(\"attack\");\n  }\n}\n```\n\nTo read your configuration, simply call initialize():\n```dart\nfinal CharacterConfig characterConfig = CharacterConfig();\nawait characterConfig.initialize();\n```\n\nNote that all RemoteConfig share the same FirebaseRemoteConfig instance. So once initialized is called on ANY RemoteConfig instance,\nyou don't have to call it again for other instances:\n```dart\nfinal CharacterConfig characterConfig = CharacterConfig();\nawait characterConfig.initialize();\n\nfinal CharacterConfig otherConfig = CharacterConfig();\notherConfig.read();\n```\n\nFor the instances that don't call initialize(), make sure to call read() instead.\n\n## Additional information\n\nFeel free to [give any feedback](https://github.com/s0punk/flutter_fit_utils_config/issues) ! This package is also open to contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0punk%2Fflutter_fit_utils_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs0punk%2Fflutter_fit_utils_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0punk%2Fflutter_fit_utils_config/lists"}