{"id":15485876,"url":"https://github.com/rodydavis/settings_manager","last_synced_at":"2026-03-06T10:32:17.486Z","repository":{"id":56838849,"uuid":"247664687","full_name":"rodydavis/settings_manager","owner":"rodydavis","description":"Flutter settings manager built on top of Shared Preferences","archived":false,"fork":false,"pushed_at":"2021-09-27T18:17:28.000Z","size":202,"stargazers_count":17,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-01T13:13:55.453Z","etag":null,"topics":["flutter","flutter-package","sharedpreferences"],"latest_commit_sha":null,"homepage":null,"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/rodydavis.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}},"created_at":"2020-03-16T09:46:25.000Z","updated_at":"2022-12-13T13:24:43.000Z","dependencies_parsed_at":"2022-08-28T23:12:39.874Z","dependency_job_id":null,"html_url":"https://github.com/rodydavis/settings_manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodydavis/settings_manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fsettings_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fsettings_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fsettings_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fsettings_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodydavis","download_url":"https://codeload.github.com/rodydavis/settings_manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fsettings_manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["flutter","flutter-package","sharedpreferences"],"created_at":"2024-10-02T06:04:10.171Z","updated_at":"2026-03-06T10:32:17.455Z","avatar_url":"https://github.com/rodydavis.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/rodydavis","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ"],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/settings_manager.svg?label=settings_manager\u0026color=blue)](https://pub.dartlang.org/packages/settings_manager)\n[![pub package](https://img.shields.io/pub/v/settings_gen.svg?label=settings_gen\u0026color=blue)](https://pub.dartlang.org/packages/settings_gen)\n[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20Me%20A%20Coffee-yellow.svg)](https://www.buymeacoffee.com/rodydavis)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ)\n\n# Settings Manager\n\n- Flutter settings store built on top of [shared preferences](https://pub.dev/packages/shared_preferences).\n- Code Generator for supported types\n\n## Usage\n\n```dart\nimport 'dart:async';\n\nimport 'package:flutter/material.dart';\nimport 'package:settings_manager/settings_manager.dart';\nimport 'package:shared_preferences/shared_preferences.dart';\n\npart 'settings.g.dart';\n\nclass Settings = SettingsBase with _$Settings;\n\nabstract class SettingsBase with SettingsStore {\n  @BoolSetting(defaultValue: false)\n  bool darkMode;\n\n  @StringSetting(defaultValue: 'none')\n  String userId;\n\n  @IntSetting(defaultValue: 0)\n  int counterValue;\n\n  @DoubleSetting(defaultValue: 0)\n  double radialValue;\n\n  @StringListSetting(defaultValue: [])\n  List\u003cString\u003e savedItems;\n}\n\n```\n\n## Example\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'settings.dart';\n\nvoid main() {\n  runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: 'Flutter Demo',\n      theme: ThemeData(primarySwatch: Colors.blue),\n      home: MyHomePage(title: 'Flutter Demo Home Page'),\n    );\n  }\n}\n\nclass MyHomePage extends StatefulWidget {\n  MyHomePage({Key key, this.title}) : super(key: key);\n\n  final String title;\n\n  @override\n  _MyHomePageState createState() =\u003e _MyHomePageState();\n}\n\nclass _MyHomePageState extends State\u003cMyHomePage\u003e {\n  final _settings = Settings();\n\n  @override\n  void initState() {\n    _settings.init().then((ready) {\n      if (mounted) setState(() {});\n    });\n    super.initState();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return StreamBuilder\u003cint\u003e(\n        stream: _settings.counterValueStream,\n        builder: (context, snapshot) {\n          return Scaffold(\n            appBar: AppBar(title: Text(widget.title)),\n            body: Center(\n              child: Column(\n                mainAxisAlignment: MainAxisAlignment.center,\n                children: \u003cWidget\u003e[\n                  Text(\n                    'You have pushed the button this many times:',\n                  ),\n                  Text(\n                    '${snapshot.data}',\n                    style: Theme.of(context).textTheme.headline4,\n                  ),\n                ],\n              ),\n            ),\n            floatingActionButton: FloatingActionButton(\n              onPressed: () =\u003e _settings.counterValue = snapshot.data + 1,\n              tooltip: 'Increment',\n              child: Icon(Icons.add),\n            ),\n          );\n        });\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fsettings_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodydavis%2Fsettings_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fsettings_manager/lists"}