パッケージ、リポジトリ、アプリカテゴリを検索

local_notifier のカバー
パッケージ詳細v0.1.6

local_notifier

このプラグインにより、Flutter デスクトップアプリがローカル通知を表示できます。

macOSWindowsLinux
30日間ダウンロード
4.9万
いいね数
116
Pub ポイント
150

パッケージをインストール

flutter pub add local_notifier

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

local_notifier パッケージは、Flutter デスクトップアプリケーションが macOS、Windows、Linux でローカル通知を表示できるようにします。外部サービスを必要とせずに、システムレベルの通知をスケジュールして表示するためのシンプルなインターフェースを提供します。デスクトッププラットフォーム専用に設計されており、ネイティブ通知システムと統合することで、タイムリーなアラートを提供します。軽量で実装が簡単なため、リマインダー、ステータス更新、ユーザー警告が必要なアプリに最適です。タイトル、本文、アイコンの表示といった基本的な通知機能をサポートしています。

用途

  • デスクトップアプリのリマインダー
  • システムレベルのアラート
  • タスク完了のお知らせ
  • ユーザー活動のトラッキング
  • アプリケーションのステータス更新

主な機能

  • ネイティブデスクトップ通知の統合
  • クロスプラットフォーム対応(macOS、Windows、Linux)
  • 通知のスケジューリングおよび表示のためのシンプルな API
  • カスタムアイコンをサポート
  • 軽量で最小限の依存関係

適している対象

  • デスクトップアプリを構築するFlutter開発者
  • ローカルアラート機能を必要とするアプリ
  • 複数のデスクトップオペレーティングシステムをターゲットにする開発者
  • 軽量な通知ソリューションを必要とするプロジェクト

注意事項

  • デスクトッププラットフォームに限定
  • モバイルデバイスのサポートなし
  • 通知の動作はOSによって異なります
  • 高度な機能には、プラットフォーム固有の設定が必要です
  • リッチメディアやインタラクティブな通知をサポートしていません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.

local_notifier

pub version

This plugin allows Flutter desktop apps to displaying local notifications.


English | 简体中文


Platform Support

Linux macOS Windows
✔️ ✔️ ✔️

Screenshots

macOS Linux Windows
image

Quick Start

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  local_notifier: ^0.1.6

Or

dependencies:
  local_notifier:
    git:
      url: https://github.com/leanflutter/local_notifier.git
      ref: main
Linux requirements
  • libnotify

Run the following command

sudo apt-get install libnotify-dev
Usage
// Add in main method.
await localNotifier.setup(
  appName: 'local_notifier_example',
  // The parameter shortcutPolicy only works on Windows
  shortcutPolicy: ShortcutPolicy.requireCreate,
);

LocalNotification notification = LocalNotification(
  title: "local_notifier_example",
  body: "hello flutter!",
);
notification.onShow = () {
  print('onShow ${notification.identifier}');
};
notification.onClose = (closeReason) {
  // Only supported on windows, other platforms closeReason is always unknown.
  switch (closeReason) {
    case LocalNotificationCloseReason.userCanceled:
      // do something
      break;
    case LocalNotificationCloseReason.timedOut:
      // do something
      break;
    default:
  }
  print('onClose ${_exampleNotification?.identifier} - $closeReason');
};
notification.onClick = () {
  print('onClick ${notification.identifier}');
};
notification?.onClickAction = (actionIndex) {
  print('onClickAction ${notification?.identifier} - $actionIndex');
};

notification.show();

Please see the example app of this plugin for a full example.

Who's using it?

Related Links

  • https://github.com/mohabouje/WinToast

License

MIT

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト