{"id":13554714,"url":"https://github.com/fasky-software/flutter_widgetkit","last_synced_at":"2025-04-09T15:07:13.947Z","repository":{"id":53597107,"uuid":"307422486","full_name":"fasky-software/flutter_widgetkit","owner":"fasky-software","description":"Flutter library for iOS Widgets Extensions. Integrate a Widget into your App 🍏📱","archived":false,"fork":false,"pushed_at":"2021-03-22T09:10:11.000Z","size":378,"stargazers_count":261,"open_issues_count":7,"forks_count":22,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T15:07:07.150Z","etag":null,"topics":["flutter","ios-widget","ios14","ios14-widget","widget-extension"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/fasky-software.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}},"created_at":"2020-10-26T15:44:00.000Z","updated_at":"2025-02-21T02:54:09.000Z","dependencies_parsed_at":"2022-09-07T14:51:13.769Z","dependency_job_id":null,"html_url":"https://github.com/fasky-software/flutter_widgetkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Fflutter_widgetkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Fflutter_widgetkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Fflutter_widgetkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Fflutter_widgetkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasky-software","download_url":"https://codeload.github.com/fasky-software/flutter_widgetkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055284,"owners_count":21040157,"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":["flutter","ios-widget","ios14","ios14-widget","widget-extension"],"created_at":"2024-08-01T12:02:53.382Z","updated_at":"2025-04-09T15:07:13.919Z","avatar_url":"https://github.com/fasky-software.png","language":"Swift","readme":"\u003ch1 align=\"center\"\u003e flutter_widgetkit \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"flutter\" src=\"./git_assets/flutter.png\" width=\"96\"\u003e\n    \u003cimg alt=\"widgetkit\" src=\"./git_assets/widgetkit.png\" width=\"96\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003e\u003ca href=\"https://flutter.dev/\"\u003eFlutter\u003c/a\u003e Library for the iOS 🍏 \u003ca href=\"https://developer.apple.com/documentation/widgetkit/\"\u003eWidgetKit framework\u003c/a\u003e and Widget Communication\u003c/strong\u003e \n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"widget_small\"  src=\"./git_assets/focused_small.png\" width=\"96\"\u003e\n\u003cimg alt=\"widget_medium\"  src=\"./git_assets/weather_medium.png\" width=\"200\"\u003e\n\u003cimg alt=\"widget_small\"  src=\"./git_assets/notes_small.png\" width=\"96\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n## Table of Contents 📚\n\n- [Introduction 👨‍🏫](#introduction-)\n- [Installation 🖇‍](#installation-)\n- [Usage 👨🏻‍💻](#usage-)\n- [Methods 📖](#methods-)\n- [Contributors 🤓](#contributors-)\n- [License 🔖](#license-)\n\n## Introduction 👨‍🏫\n\nThis library allows you to call essential methods from the iOS \"WidgetKit Framework\", which are needed when developing a widget. For example updating the widget timelines. It is also possible to communicate with the widget via \u003ca href=\"https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups\"\u003eApp Groups\u003c/a\u003e/\u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e.\n\n🚨 To be on the safe side: This library exposes API functionality of \u003ca href=\"https://developer.apple.com/documentation/widgetkit/\"\u003eWidgetKit\u003c/a\u003e. The widgets themselves must be developed natively in SwiftUI.\n\n### \u003cstrong\u003eℹ️ \u003ca href=\"https://thomas-leiter.medium.com/develop-an-ios-14-widget-in-flutter-with-swiftui-e98eaff2c606\"\u003eBlog\u003c/a\u003e about writing a Widget with this library\u003c/strong\u003e\n\n## Installation 🖇‍\n\nAdd flutter_widgetkit as a \u003ca href=\"https://flutter.dev/docs/development/packages-and-plugins/using-packages\"\u003edependency in your pubspec.yaml\u003c/a\u003e file.\n\n## Usage 👨🏻‍💻\n\n```dart\nimport 'package:flutter_widgetkit/flutter_widgetkit.dart';\n\n// Reloading Widget Timelines\nWidgetKit.reloadAllTimelines();\nWidgetKit.reloadTimelines('test');\n\n// Communicate with Widget\nWidgetKit.setItem('testString', 'Hello World', 'group.com.fasky');\n```\n\n## Methods 📖‍\n\n#### `WidgetKit.reloadAllTimelines()`\n\nReloads the timelines for all configured widgets belonging to the containing app.\n\n---\n\n#### `WidgetKit.reloadTimelines(ofKind: String)`\n\nReloads the timelines for all widgets of a particular kind.\n\n---\n\n#### `WidgetKit.setItem(String key, dynamic value, String appGroup)`\n\nWrites Key-Value to \u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e database.\n\n---\n\n#### `WidgetKit.getItem(String key, String appGroup)`\n\nReads Value from \u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e database.\n\n---\n\n#### `WidgetKit.removeItem(String key, String appGroup)`\n\nRemoves Value for Key from \u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e database.\n\n---\n\n## [Contributors 🤓](#Contributors)\n\n| [\u003cimg alt=\"Thomas Leiter\" src=\"https://avatars3.githubusercontent.com/u/20393156?s=400\u0026u=ae0a43de5d81d58a698abffe4e2ede024f2b6700\u0026v=4\" width=\"117\"\u003e](https://github.com/tomLadder) |\n| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| \u003cp align=\"center\"\u003e[Thomas Leiter](https://github.com/tomLadder) \u003c/p\u003e                                                                                                               |\n\n## License 🔖\n\nMIT License\n\nCopyright (c) 2020 Thomas Leiter, Fasky OG\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["插件","Swift","Device [🔝](#readme)","Plugins"],"sub_categories":["设备","Device"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasky-software%2Fflutter_widgetkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasky-software%2Fflutter_widgetkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasky-software%2Fflutter_widgetkit/lists"}