{"id":15468170,"url":"https://github.com/lesnitsky/flutter_localstorage","last_synced_at":"2025-03-12T13:06:22.880Z","repository":{"id":33015953,"uuid":"149688203","full_name":"lesnitsky/flutter_localstorage","owner":"lesnitsky","description":"📦 LocalStorage for Flutter","archived":false,"fork":false,"pushed_at":"2024-08-10T13:36:05.000Z","size":719,"stargazers_count":299,"open_issues_count":6,"forks_count":69,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-08T03:44:02.329Z","etag":null,"topics":["dart","flutter","flutter-package","json-storage","localstorage","storage"],"latest_commit_sha":null,"homepage":"","language":"C++","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/lesnitsky.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":"2018-09-21T00:41:59.000Z","updated_at":"2024-12-19T06:35:52.000Z","dependencies_parsed_at":"2024-06-18T13:33:00.248Z","dependency_job_id":"964778a8-c6f9-480e-9859-0573d9c3fb4c","html_url":"https://github.com/lesnitsky/flutter_localstorage","commit_stats":{"total_commits":67,"total_committers":19,"mean_commits":3.526315789473684,"dds":"0.32835820895522383","last_synced_commit":"446d0ef2bb58b92d3198626c5147d57e52faab7f"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fflutter_localstorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fflutter_localstorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fflutter_localstorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fflutter_localstorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesnitsky","download_url":"https://codeload.github.com/lesnitsky/flutter_localstorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243222205,"owners_count":20256226,"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":["dart","flutter","flutter-package","json-storage","localstorage","storage"],"created_at":"2024-10-02T01:40:21.608Z","updated_at":"2025-03-12T13:06:22.860Z","avatar_url":"https://github.com/lesnitsky.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalStorage\n\n[LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) for Flutter.\n\n\u003e [!IMPORTANT]  \n\u003e LocalStorage is not intended to store large amounts or sensitive data.\n\n[\u003cimg src=\"https://badges.globeapp.dev/twitter\" height=\"40px\" /\u003e](https://twitter.com/lesnitsky_dev)\n[\u003cimg src=\"https://badges.globeapp.dev/github?owner=lesnitsky\u0026repository=flutter_localstorage\" height=\"40px\" /\u003e](https://github.com/lesnitsky/flutter_localstorage)\n\n## Installation\n\n```sh\nflutter pub add localstorage\n```\n\nor add dependency to `pubspec.yaml` manually\n\n```yaml\ndependencies:\n  localstorage: ^5.0.0\n```\n\n## API docs\n\n[LocalStorage API documentation](https://pub.dev/documentation/localstorage/latest/localstorage/LocalStorage-class.html)\n\n## Usage\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:localstorage/localstorage.dart';\n\nlate final ValueNotifier\u003cint\u003e notifier;\n\nFuture\u003cvoid\u003e main() async {\n  WidgetsFlutterBinding.ensureInitialized();\n  await initLocalStorage();\n\n  notifier = ValueNotifier(int.parse(localStorage.getItem('counter') ?? '0'));\n  notifier.addListener(() {\n    localStorage.setItem('counter', notifier.value.toString());\n  });\n\n  runApp(const MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        body: Center(\n          child: ValueListenableBuilder\u003cint\u003e(\n            valueListenable: notifier,\n            builder: (context, value, child) {\n              return Text('Pressed $value times');\n            },\n          ),\n        ),\n        floatingActionButton: FloatingActionButton(\n          onPressed: () {\n            notifier.value++;\n          },\n          child: const Icon(Icons.add),\n        ),\n      ),\n    );\n  }\n}\n```\n\n## License\n\nMIT\n\n[\u003cimg src=\"https://badges.globeapp.dev/twitter\" height=\"40px\" /\u003e](https://twitter.com/lesnitsky_dev)\n[\u003cimg src=\"https://badges.globeapp.dev/github?owner=lesnitsky\u0026repository=flutter_localstorage\" height=\"40px\" /\u003e](https://github.com/lesnitsky/flutter_localstorage)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnitsky%2Fflutter_localstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesnitsky%2Fflutter_localstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnitsky%2Fflutter_localstorage/lists"}