{"id":19682688,"url":"https://github.com/yako-dev/flutter-settings-ui","last_synced_at":"2025-05-15T10:06:54.211Z","repository":{"id":37686672,"uuid":"225837523","full_name":"yako-dev/flutter-settings-ui","owner":"yako-dev","description":"Create native settings for Flutter app in a minutes.","archived":false,"fork":false,"pushed_at":"2023-12-05T18:49:46.000Z","size":17728,"stargazers_count":927,"open_issues_count":25,"forks_count":235,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-14T16:56:52.153Z","etag":null,"topics":["adaptive","android","dart","flutter","flutter-package","ios","mobile","settings","ui","ui-components","widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/settings_ui","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yako-dev.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":"2019-12-04T10:13:22.000Z","updated_at":"2025-04-07T21:42:17.000Z","dependencies_parsed_at":"2023-02-16T13:01:05.570Z","dependency_job_id":"445738db-3ea9-4e7d-996f-d00606e6a724","html_url":"https://github.com/yako-dev/flutter-settings-ui","commit_stats":{"total_commits":134,"total_committers":19,"mean_commits":7.052631578947368,"dds":0.6716417910447761,"last_synced_commit":"d8d97b23474fc0697334812e9dcfc4d5adb5d071"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter-settings-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter-settings-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter-settings-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter-settings-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yako-dev","download_url":"https://codeload.github.com/yako-dev/flutter-settings-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"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":["adaptive","android","dart","flutter","flutter-package","ios","mobile","settings","ui","ui-components","widget"],"created_at":"2024-11-11T18:11:41.797Z","updated_at":"2025-05-15T10:06:49.150Z","avatar_url":"https://github.com/yako-dev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Settings UI for Flutter\n\n[![Pub Version](https://img.shields.io/pub/v/settings_ui?color=blueviolet)](https://pub.dev/packages/settings_ui)\n\n## Overview:\n\nBuild the beautiful settings screen UI in one moment with `Settings UI for Flutter`\n\n\u003cp align=\"center\"\u003e  \n  \u003cimg src=\"https://raw.githubusercontent.com/yako-dev/flutter-settings-ui/dev/assets/v2/settings_ui_cover.png\" height=\"700px\"\u003e  \n\u003c/p\u003e  \n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Installing:\n\n1. Add the dependency in your `pubspec.yaml` file.\n\n```yaml  \ndependencies:  \n settings_ui: \u003clatest version\u003e\n ```  \n\n2. Import the `settings_ui` package.\n\n```dart  \nimport 'package:settings_ui/settings_ui.dart';\n```  \n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Basic Usage:\n\n```dart  \n    SettingsList(\n      sections: [\n        SettingsSection(\n          title: Text('Common'),\n          tiles: \u003cSettingsTile\u003e[\n            SettingsTile.navigation(\n              leading: Icon(Icons.language),\n              title: Text('Language'),\n              value: Text('English'),\n            ),\n            SettingsTile.switchTile(\n              onToggle: (value) {},\n              initialValue: true,\n              leading: Icon(Icons.format_paint),\n              title: Text('Enable custom theme'),\n            ),\n          ],\n        ),\n      ],\n    ),\n```  \n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Settings List\n\nSettings list it's a wrapper for your settings UI.\n\n### Parameters\n\n| Parameter | Description | Required |\n|--|--|--|\n| List\\\u003cAbstractSettingsSection\u003e sections | The list of your settings sections | +\n| bool shrinkWrap | Enable/disable the shrink wrap for the list | -\n| ScrollPhysics physics | Setup your custom scroll physics | -\n| DevicePlatform platform | Chose the platform view you prefer | -\n| SettingsThemeData lightTheme | Setup your light theme | -\n| SettingsThemeData darkTheme | Setup your dark theme | -\n| Brightness brightness | Overwrite the brightness you want | -\n| EdgeInsetsGeometry contentPadding | Set custom paddings | -\n| ApplicationType applicationType | Setup the application type you use: the material for MaterialApp, the cupertino for CupertinoApp, and the `both`, if you running the MaterialApp and the CupertinoApp depending on the device's OC | -\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Settings Section\n\nThe Setting section is the block of your settings tiles located in your `SettingsList`.\n\n### Implementations\n\n| Type | Description |\n|--|--|\n| AbstractSettingsSection | An abstract entity. Just an OOP's thing (so you can expand it yourself) |\n| CustomSettingsSection | You asked a lot. We implemented this for you. Now you can put anything you want as a child inside this custom section. Just paste the image of your cat or the weather widget inside the `SettingsList`. Feel free and enjoy |\n| SettingsSection | The default section widget, contains `Widget title`, `EdgeInsetsDirectional margin` and the required list of `AbstractSettingsTile` we called `tiles` |\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Settings Tile\n\nHere it is. The section tile. It displays the elements you want to show.\n\n| Type | Description |\n|--|--|\n| AbstractSettingsTile | One more OOP's thing (so you can expand it yourself) |\n| CustomSettingsTile | The main idea is the same as for the `CustomSettingsSection`. You can put anything as a child inside your `SettingsSection`.\n| SettingsTile | I think that we need to discuss this deeper. See below for the details.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n### Settings tile\n\nThe implementation of `AbstractSettingsTile`. It has a lot of fabric methods and parameters. Let's\ntake a look.\n\n| Constructor / Fabric method | Description |\n|--|--|\n| SettingsTile | Displays the default setting tile. Nothing special. |\n| SettingsTile.navigation | Created to indicate this tile as a navigation tile. It adds a right-located arrow for the iOS design as an example.\n| SettingsTile.switchTile | Creates a switch tile. Do you want some switch? Just use this one. |\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n#### Now let's deal with all these parameters.\n\n| Parameter | Description |\n|--|--|\n| Widget leading | Adds some leading for your tile. Just like with the `ListTile`. |\n| Widget trailing | Adds some trailing for your tile. Just like with the `ListTile`. |\n| Widget title | The title of your tile.|\n| Widget description | Additional info about this tile. Displays different ways according to the platform\n| Function(BuildContext context) onPressed | More interactivity for your tiles. Just tap it.\n| Color activeSwitchColor | Set the switch color for your `SettingsTile.switchTile`\n| Widget value | Just like the `description` but more declarative. You can compare and choose which exactly you want to use.\n| Function(bool value) onToggle | Override the on switch event in your `SettingsTile.switchTile`\n| bool initialValue | Choose the initial value for your `SettingsTile.switchTile`\n| bool enabled | Mark your tile as disabled. It's pretty easy!\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyako-dev%2Fflutter-settings-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyako-dev%2Fflutter-settings-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyako-dev%2Fflutter-settings-ui/lists"}