{"id":13550543,"url":"https://github.com/stryder-dev/flutter_platform_widgets","last_synced_at":"2025-05-14T00:05:57.147Z","repository":{"id":38245901,"uuid":"132543051","full_name":"stryder-dev/flutter_platform_widgets","owner":"stryder-dev","description":"Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets","archived":false,"fork":false,"pushed_at":"2025-03-07T01:26:39.000Z","size":2636,"stargazers_count":1600,"open_issues_count":48,"forks_count":178,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-10T02:16:25.000Z","etag":null,"topics":["dart","flutter","package","widgets"],"latest_commit_sha":null,"homepage":null,"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/stryder-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},"funding":{"ko_fi":"aqwert"}},"created_at":"2018-05-08T02:33:41.000Z","updated_at":"2025-04-08T19:32:50.000Z","dependencies_parsed_at":"2024-01-14T05:07:35.320Z","dependency_job_id":"476e98b6-3ba7-4488-b0b4-d73d928f824a","html_url":"https://github.com/stryder-dev/flutter_platform_widgets","commit_stats":{"total_commits":381,"total_committers":39,"mean_commits":9.76923076923077,"dds":"0.41469816272965876","last_synced_commit":"216d5e245854e9c852ca3416b36ca9de0d9e92b4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stryder-dev%2Fflutter_platform_widgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stryder-dev%2Fflutter_platform_widgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stryder-dev%2Fflutter_platform_widgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stryder-dev%2Fflutter_platform_widgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stryder-dev","download_url":"https://codeload.github.com/stryder-dev/flutter_platform_widgets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043432,"owners_count":22004953,"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","widgets"],"created_at":"2024-08-01T12:01:34.531Z","updated_at":"2025-05-14T00:05:57.116Z","avatar_url":"https://github.com/stryder-dev.png","language":"Dart","funding_links":["https://ko-fi.com/aqwert"],"categories":["Dart"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/stryder-dev/flutter_platform_widgets/master/images/logo.png\" width=\"250px\" alt=\"Flutter Platform Widgets\" /\u003e\n\u003c/p\u003e\n\n\u003c!-- omit in toc --\u003e\n# Flutter Platform Widgets\n\n![Pub](https://img.shields.io/pub/v/flutter_platform_widgets) ![GitHub](https://img.shields.io/github/license/stryder-dev/flutter_platform_widgets)\n\n\u003c!-- omit in toc --\u003e\n### TL;DR;\nA wrapper library that makes it easier to target the design language of your chosen platform using a single widget.\n\n\u003c!-- omit in toc --\u003e\n### Bit more\nFor anyone that starts with building apps with Flutter it becomes clear that picking the right widget is important. This typically starts with using the Material set of widgets which is the default look and feel for Android. However when designing screens for iOS and the Cupertino design language a double up of effort is required to cater for a new set of widgets.\n\nThis project was initially an experiment which grew into a fully fledged package to support the look using the Material and Cupertino designed widgets with a single platform widget.\n\nIf you want to build a Material and Cupertino looking app with very similar functionality then this package could save you time and effort.\n\n---\n\nThis package supports the **Stable** release as a full released version.\n\nBeta channels might be supported when there is a pre-release version. Please check the CHANGELOG for version compatibility.\n\nDue to Master being in rapid development this package is unable to support the Master channel. If this support is required then it is best to fork the repo and locally reference the forked version where you can make changes appropriately.\n\n---\n\n# Installation\n\n\u003e pub.dev: https://pub.dev/packages/flutter_platform_widgets/install\n\n# How it works \u003ca name=\"how-it-works\"\u003e\u003c/a\u003e\n\nInstead of having to write conditional code like this...\n\n```dart\nif (Platform.isAndroid) {\n  return ElevatedButton(onPressed: onPressed, child: child);\n} else if (Platform.isIOS) {\n  return CupertinoButton.filled(onPressed: onPressed, child: child);\n}\n```\n\nyou can use a single `platform` widget which will render the correct underlying widget based on the `ThemeData.platform` property...\n\n```dart\nreturn PlatformElevatedButton(onPressed: onPressed, child: child);\n```\nThe heavy lifting of choosing the right widget is done for you.\n\nYou can also specify what design language you want for any supported platforms within flutter. These include:\n* Android\n* iOS\n* Web\n* Macos\n* Windows\n* Linux\n\n# Docs\n\nView the [package wiki](https://github.com/stryder-dev/flutter_platform_widgets/wiki) for details of how to use and the list of available widgets\n\n\n# Issues and Feedback\n\nPlease [create](https://github.com/stryder-dev/flutter_platform_widgets/issues/new) an issue to provide feedback or an issue.\n\n# License\n\nMIT\n\n# Contributors\n\nSpecial thanks for everyone that have contributed to this project over the last 5 years...\n\n\u003ca href=\"https://github.com/stryder-dev/flutter_platform_widgets/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=stryder-dev/flutter_platform_widgets\" /\u003e\n\u003c/a\u003e\n\nMade with [contrib.rocks](https://contrib.rocks).\n\nInspired by the example given by Swav Kulinski (https://github.com/swavkulinski/flutter-platform-specific-widgets)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstryder-dev%2Fflutter_platform_widgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstryder-dev%2Fflutter_platform_widgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstryder-dev%2Fflutter_platform_widgets/lists"}