搜索插件、代码仓与 APP 分类

flutter_local_notifications 封面
插件详情v22.3.3

flutter_local_notifications

一个跨平台插件,用于在 Flutter 应用中显示和调度本地通知,并支持针对每个平台进行自定义。

AndroidiOSmacOSWindowsLinux
近 30 天下载
372万
喜欢数
7360
Pub 分数
150

安装插件

flutter pub add flutter_local_notifications

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个跨平台的 Flutter 插件,可在 Android、iOS、macOS、Windows 和 Linux 上显示和调度本地通知。它提供平台特定的自定义选项,使开发者能够为每个操作系统定制通知的外观和行为。该插件支持丰富的通知功能,如图标、声音、震动和操作。它可无缝集成到 Flutter 应用中,并由一个值得信赖的开发社区维护。

适合场景

  • 计划提醒
  • 发送定时警报
  • 通过类似推送的通知提高用户参与度
  • 显示应用更新或事件
  • 提供对后台任务的反馈

主要特点

  • 平台特定的自定义
  • 对丰富通知的支持
  • 计划和即时通知
  • 自定义声音和震动
  • 通知操作和回复
  • 跨平台兼容性

适合对象

  • 移动和桌面 Flutter 应用
  • 需要及时用户提醒的应用
  • 生产力和提醒应用程序
  • 后台任务跟踪
  • 用户参与功能

使用建议

  • 需要平台特定的设置(例如,Android 清单条目)
  • 权限可能因平台而异
  • 仅限本地通知(非远程)
  • 通知行为在不同平台上略有差异
  • 建议在所有目标平台上进行测试

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Local Notifications plugin

This repository consists hosts the following packages

These can be found in the corresponding directories within the same name. Most developers are likely here as they are looking to use the flutter_local_notifications plugin. There is a readme file within each directory with more information.

Issues

If you run into bugs, please raise them on the GitHub repository. Please do not email them to me as GitHub is the appropriate place for them and allows for members of the community to answer questions, particularly if I miss the email. It would also be much appreciated if they could be limited to actual bugs or feature requests. If you're looking at how you could use the plugin to do a particular kind of notification, check the example app provides detailed code samples for each supported feature. Also try to check the README first in case you have missed something e.g. platform-specific setup.

Contributing

If you are interested in contributing, please review the contribution guide

所属分类

依赖

依赖清单 6 项

  • clock^1.1.0
  • flutter_local_notifications_linux^8.0.2
  • flutter_local_notifications_platform_interface^12.2.0
  • flutter_local_notifications_web^1.0.0
  • flutter_local_notifications_windows^3.1.1
  • timezone^0.11.0

源码仓库

使用此插件的项目

所在榜单