{"id":23773793,"url":"https://github.com/mahmoudelsayed7/shared-preferences","last_synced_at":"2026-05-18T03:34:54.148Z","repository":{"id":253878338,"uuid":"844035706","full_name":"MAHMOUDELSAYED7/shared-preferences","owner":"MAHMOUDELSAYED7","description":"SharedPrefsService - Flutter Shared Preferences Handler.","archived":false,"fork":false,"pushed_at":"2024-12-06T07:59:14.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T05:44:02.571Z","etag":null,"topics":["flutter","flutter-shared-preferences","local-storage","localstorage","pub-dev","shared-preferences","sharedpreferences","sharedpreferences-helper"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MAHMOUDELSAYED7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-18T07:14:11.000Z","updated_at":"2024-12-06T07:59:17.000Z","dependencies_parsed_at":"2024-08-20T05:58:37.921Z","dependency_job_id":null,"html_url":"https://github.com/MAHMOUDELSAYED7/shared-preferences","commit_stats":null,"previous_names":["mahmoudelsayed69/shared-preferences","mahmoudelsayed7/shared-preferences"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAHMOUDELSAYED7%2Fshared-preferences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAHMOUDELSAYED7%2Fshared-preferences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAHMOUDELSAYED7%2Fshared-preferences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAHMOUDELSAYED7%2Fshared-preferences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MAHMOUDELSAYED7","download_url":"https://codeload.github.com/MAHMOUDELSAYED7/shared-preferences/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239962881,"owners_count":19725810,"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":["flutter","flutter-shared-preferences","local-storage","localstorage","pub-dev","shared-preferences","sharedpreferences","sharedpreferences-helper"],"created_at":"2025-01-01T05:44:06.354Z","updated_at":"2026-05-18T03:34:54.100Z","avatar_url":"https://github.com/MAHMOUDELSAYED7.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharedPrefsService - Flutter Shared Preferences Handler\n\nThis Flutter project provides a reusable service class, `SharedPrefsService`, to handle shared preferences operations. This class simplifies the process of storing and retrieving data using the `shared_preferences` package.\n\n## Features\n\n- **Data Storage**: Supports saving different data types, including strings, integers, doubles, and booleans.\n- **Dynamic Data Handling**: Allows storing and retrieving maps and lists of maps as JSON strings.\n- **Date Management**: Provides methods to save and retrieve the last updated time in a formatted string.\n- **Data Deletion**: Supports deleting specific keys or clearing all stored data.\n\n## Getting Started\n\n### Prerequisites\n\nEnsure you have Flutter installed and set up on your machine. You will also need to include the following dependency in your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  shared_preferences: ^2.3.2\n```\n## Installation\nClone the repository or copy the SharedPrefsService class into your Flutter project.\nInitialize shared preferences in your main application file:\n```\nFuture\u003cvoid\u003e main() async {\n  WidgetsFlutterBinding.ensureInitialized();\n  await SharedPrefsService.sharedPrefInit();\n  runApp(MyApp());\n}\n```\n\n## Notice \nThe `SharedPrefsService` class includes detailed comments for each method to make it easy to understand and use. You can also modify the class as needed to suit your specific requirements.\n\n## Contact\n\nFor any questions or feedback, please reach out via email: [mahmoudelsayed.dev@gmail.com](mahmoudelsayed.dev@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudelsayed7%2Fshared-preferences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmoudelsayed7%2Fshared-preferences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudelsayed7%2Fshared-preferences/lists"}