{"id":13784908,"url":"https://github.com/leanflutter/local_notifier","last_synced_at":"2026-03-06T07:32:25.701Z","repository":{"id":53864300,"uuid":"404152829","full_name":"leanflutter/local_notifier","owner":"leanflutter","description":"This plugin allows Flutter desktop apps to notify local notifications.","archived":false,"fork":false,"pushed_at":"2025-03-23T04:08:15.000Z","size":241,"stargazers_count":77,"open_issues_count":11,"forks_count":32,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-24T21:03:39.467Z","etag":null,"topics":["flutter-desktop","local-notification"],"latest_commit_sha":null,"homepage":"","language":"C++","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/leanflutter.png","metadata":{"files":{"readme":"README-ZH.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"liberapay":"lijy91"}},"created_at":"2021-09-07T23:44:54.000Z","updated_at":"2025-05-07T20:42:41.000Z","dependencies_parsed_at":"2024-01-18T18:25:37.115Z","dependency_job_id":"6549f5dc-9733-4070-b92b-96500fbad576","html_url":"https://github.com/leanflutter/local_notifier","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/leanflutter/local_notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Flocal_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Flocal_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Flocal_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Flocal_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanflutter","download_url":"https://codeload.github.com/leanflutter/local_notifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Flocal_notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-desktop","local-notification"],"created_at":"2024-08-03T19:00:53.944Z","updated_at":"2026-03-06T07:32:25.681Z","avatar_url":"https://github.com/leanflutter.png","language":"C++","readme":"\u003e **🚀 快速发布您的应用**: 试试 [Fastforge](https://fastforge.dev) - 构建、打包和分发您的 Flutter 应用最简单的方式。\n\n# local_notifier\n\n[![pub version][pub-image]][pub-url] [![][discord-image]][discord-url] ![][visits-count-image] \n\n[pub-image]: https://img.shields.io/pub/v/local_notifier.svg\n[pub-url]: https://pub.dev/packages/local_notifier\n\n[discord-image]: https://img.shields.io/discord/884679008049037342.svg\n[discord-url]: https://discord.gg/zPa6EZ2jqb\n\n[visits-count-image]: https://img.shields.io/badge/dynamic/json?label=Visits%20Count\u0026query=value\u0026url=https://api.countapi.xyz/hit/leanflutter.local_notifier/visits\n\n这个插件允许 Flutter 桌面 应用显示本地通知。\n\n---\n\n[English](./README.md) | 简体中文\n\n---\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [local_notifier](#local_notifier)\n  - [平台支持](#平台支持)\n  - [截图](#截图)\n  - [快速开始](#快速开始)\n    - [安装](#安装)\n      - [Linux requirements](#linux-requirements)\n    - [用法](#用法)\n  - [谁在用使用它？](#谁在用使用它)\n  - [相关链接](#相关链接)\n  - [许可证](#许可证)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 平台支持\n\n| Linux | macOS | Windows |\n| :---: | :---: | :-----: |\n|   ✔️   |   ✔️   |    ✔️    |\n\n## 截图\n\n| macOS                                                                                       | Linux                                                                                       | Windows                                                                                            |\n| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |\n| ![](https://github.com/leanflutter/local_notifier/blob/main/screenshots/macos.png?raw=true) | ![](https://github.com/leanflutter/local_notifier/blob/main/screenshots/linux.png?raw=true) | ![image](https://github.com/leanflutter/local_notifier/blob/main/screenshots/windows.png?raw=true) |\n\n## 快速开始\n\n### 安装\n\n将此添加到你的软件包的 pubspec.yaml 文件：\n\n```yaml\ndependencies:\n  local_notifier: ^0.1.6\n```\n\n或\n\n```yaml\ndependencies:\n  local_notifier:\n    git:\n      url: https://github.com/leanflutter/local_notifier.git\n      ref: main\n```\n\n#### Linux requirements\n\n- `libnotify`\n\n运行以下命令\n\n```\nsudo apt-get install libnotify-dev\n```\n\n### 用法\n\n```dart\n// 在 main 方法中添加。\nawait localNotifier.setup(\n  appName: 'local_notifier_example',\n  // 参数 shortcutPolicy 仅适用于 Windows\n  shortcutPolicy: ShortcutPolicy.requireCreate,\n);\n\nLocalNotification notification = LocalNotification(\n  title: \"local_notifier_example\",\n  body: \"hello flutter!\",\n);\nnotification.onShow = () {\n  print('onShow ${notification.identifier}');\n};\nnotification.onClose = (closeReason) {\n  // 只支持在windows，其他平台 closeReason 始终为 unknown。\n  switch (closeReason) {\n    case LocalNotificationCloseReason.userCanceled:\n      // do something\n      break;\n    case LocalNotificationCloseReason.timedOut:\n      // do something\n      break;\n    default:\n  }\n  print('onClose ${_exampleNotification?.identifier} - $closeReason');\n};\nnotification.onClick = () {\n  print('onClick ${notification.identifier}');\n};\nnotification?.onClickAction = (actionIndex) {\n  print('onClickAction ${notification?.identifier} - $actionIndex');\n};\n\nnotification.show();\n```\n\n\u003e 请看这个插件的示例应用，以了解完整的例子。\n\n## 谁在用使用它？\n\n- [Biyi (比译)](https://biyidev.com/) - 一个便捷的翻译和词典应用。\n\n## 相关链接\n\n- https://github.com/mohabouje/WinToast\n\n## 许可证\n\n[MIT](./LICENSE)\n","funding_links":["https://liberapay.com/lijy91"],"categories":["Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Flocal_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanflutter%2Flocal_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Flocal_notifier/lists"}