{"id":13471194,"url":"https://github.com/ReinBentdal/styled_widget","last_synced_at":"2025-03-26T13:30:53.482Z","repository":{"id":39579420,"uuid":"224264977","full_name":"ReinBentdal/styled_widget","owner":"ReinBentdal","description":"Simplifying widget style in Flutter. ","archived":false,"fork":false,"pushed_at":"2023-09-14T03:59:03.000Z","size":18623,"stargazers_count":1298,"open_issues_count":21,"forks_count":103,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-24T01:16:22.610Z","etag":null,"topics":["dart","flutter","package","style","widget","widgets"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/styled_widget","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/ReinBentdal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ReinBentdal","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/reinbentdal"]}},"created_at":"2019-11-26T18:59:03.000Z","updated_at":"2025-03-21T06:35:13.000Z","dependencies_parsed_at":"2024-01-05T21:04:47.688Z","dependency_job_id":null,"html_url":"https://github.com/ReinBentdal/styled_widget","commit_stats":{"total_commits":204,"total_committers":14,"mean_commits":"14.571428571428571","dds":0.0980392156862745,"last_synced_commit":"19b15824170771440db68fb2ae89443d63371980"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReinBentdal%2Fstyled_widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReinBentdal%2Fstyled_widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReinBentdal%2Fstyled_widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReinBentdal%2Fstyled_widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReinBentdal","download_url":"https://codeload.github.com/ReinBentdal/styled_widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662766,"owners_count":20652078,"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","package","style","widget","widgets"],"created_at":"2024-07-31T16:00:41.390Z","updated_at":"2025-03-26T13:30:53.450Z","avatar_url":"https://github.com/ReinBentdal.png","language":"Dart","readme":"\u003cp align=\"center\" \u003e\n  \u003ca href=\"https://pub.dev/packages/styled_widget\"\u003e\n    \u003cimg src=\"https://github.com/ReinBentdal/styled_widget/raw/master/doc/assets/logo.png\"  width=\"500\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\n  \u003cstrong\u003eSimplifying your widget tree structure by defining widgets using methods.\u003c/strong\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://pub.dev/packages/styled_widget\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/styled_widget?color=blue\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ReinBentdal/styled_widget\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/ReinBentdal/styled_widget\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-purple.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/tOTWBs7\" target=\"_blank\"\u003e\u003cimg width=\"150px\" src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\nThanks to the introduction of [extension methods](https://dart.dev/guides/language/extension-methods) in Dart 2.7.0, `styled_widget` makes it possible to build widget tree\\`s more readable and efficient.\n\n`styled_widget` is build as a tool to enhance your Flutter development experience and to seamlessly integrate with your codebase. \n\n### Showcase\n| [Design](https://dribbble.com/shots/6459693-Creative-layout-design),  [Code](https://github.com/ReinBentdal/styled_widget/wiki/demo_app) | [Design](https://dribbble.com/shots/4514354-Sign-up), [Code](https://github.com/ReinBentdal/styled_widget/wiki/japan-style-example) | [Design](https://no.pinterest.com/pin/403283341630104104/), [Code](https://github.com/ReinBentdal/styled_widget/wiki/toggle) |\n|-|-|-|\n|\u003cimg src=\"https://raw.githubusercontent.com/ReinBentdal/styled_widget/master/example/assets/demo_app.gif\"  width=\"250\"\u003e|\u003cimg src=\"https://github.com/ReinBentdal/styled_widget/blob/master/example/assets/japan-style-example.gif?raw=true\" width=\"250\" /\u003e|\u003cimg src=\"https://github.com/ReinBentdal/styled_widget/blob/master/example/assets/toggle.gif?raw=true\" width=\"250\"\u003e|\n\n### Basic example\n`styled_widget` has a **bottom up** approach to building widget\\`s. This means you start with the inner most element and layer widget\\`s on top. The following example is structured as follows:\nIcon -\u003e blue circle -\u003e light blue circle -\u003e card -\u003e background\n```dart\nIcon(OMIcons.home, color: Colors.white)\n  .padding(all: 10)\n  .decorated(color: Color(0xff7AC1E7), shape: BoxShape.circle)\n  .padding(all: 15)\n  .decorated(color: Color(0xffE8F2F7), shape: BoxShape.circle)\n  .padding(all: 20)\n  .card(\n    elevation: 10,\n    shape: RoundedRectangleBorder(\n      borderRadius: BorderRadius.circular(20),\n    ),\n  )\n  .alignment(Alignment.center)\n  .backgroundColor(Color(0xffEBECF1));\n```\n\u003cdetails\u003e\n  \u003csummary\u003eRaw Flutter (click to show)\u003c/summary\u003e\n\u003cpre\u003e\n\n```dart\nDecoratedBox(\n  decoration: BoxDecoration(\n    color: Color(0xffEBECF1),\n  ),\n  child: Align(\n    alignment: Alignment.center,\n    child: Card(\n      elevation: 10,\n      shape: RoundedRectangleBorder(\n        borderRadius: BorderRadius.circular(20),\n      ),\n      child: Padding(\n        padding: EdgeInsets.all(20),\n        child: DecoratedBox(\n          decoration: BoxDecoration(\n            color: Color(0xffE8F2F7),\n            shape: BoxShape.circle,\n          ),\n          child: Padding(\n            padding: EdgeInsets.all(15),\n            child: DecoratedBox(\n              decoration: BoxDecoration(\n                color: Color(0xff7AC1E7),\n                shape: BoxShape.circle,\n              ),\n              child: Padding(\n                padding: EdgeInsets.all(10),\n                child: Icon(\n                  OMIcons.home,\n                  color: Colors.white,\n                ),\n              ),\n            ),\n          ),\n        ),\n      ),\n    ),\n  ),\n);\n```\n\u003c/pre\u003e\n\u003c/details\u003e\n\u003cimg width=\"400\" src=\"https://github.com/ReinBentdal/styled_widget/blob/master/doc/assets/simple_demo.png?raw=true\" /\u003e\n\n### Docs\n\u003cstrong\u003eSee the documentation at [styled_widget/wiki](https://github.com/ReinBentdal/styled_widget/wiki)\u003c/strong\u003e for more information about using `styled_widget`!\n\n\u003cstrong\u003eQuicklinks\u003c/strong\u003e\n* [Home](https://github.com/ReinBentdal/styled_widget/wiki)\n* [Core concept](https://github.com/ReinBentdal/styled_widget/wiki/Core-concept)\n* [Widgets](https://github.com/ReinBentdal/styled_widget/wiki/Widgets)\n* [Animations](https://github.com/ReinBentdal/styled_widget/wiki/Animations)\n* [List of methods](https://github.com/ReinBentdal/styled_widget/wiki/List-of-methods)\n* [Examples](https://github.com/ReinBentdal/styled_widget/wiki/Examples)\n  * [demo app](https://github.com/ReinBentdal/styled_widget/wiki/demo_app)\n  * [japan style](https://github.com/ReinBentdal/styled_widget/wiki/japan-style-example)\n  * [toggle animation](https://github.com/ReinBentdal/styled_widget/wiki/toggle)\n  * [styled_widget logo](https://github.com/ReinBentdal/styled_widget/wiki/styled_widget-logo)\n  * [Basic text example](https://github.com/ReinBentdal/styled_widget/wiki/basic-text-example)\n* [Contributing](https://github.com/ReinBentdal/styled_widget/wiki/Contributing)\n","funding_links":["https://github.com/sponsors/ReinBentdal","https://www.paypal.me/reinbentdal","https://www.buymeacoffee.com/tOTWBs7"],"categories":["Dart","实验性","Experimental [🔝](#readme)","Experimental"],"sub_categories":["Web"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReinBentdal%2Fstyled_widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FReinBentdal%2Fstyled_widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReinBentdal%2Fstyled_widget/lists"}