패키지, 저장소 및 앱 카테고리 검색

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 개발자
  • 로컬 알림 기능이 필요한 앱
  • 여러 데스크톱 운영 체제를 대상으로 하는 개발자
  • 경량 알림 솔루션을 필요로 하는 프로젝트

고려 사항

  • 데스크톱 플랫폼에 한정
  • 모바일 장치 지원 없음
  • 알림 동작은 운영 체제에 따라 다릅니다
  • 고급 기능을 사용하려면 플랫폼별 구성이 필요합니다
  • 리치 미디어 또는 인터랙티브 알림을 지원하지 않습니다

원본 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 개

소스 저장소

이 패키지를 사용하는 프로젝트