flutter_desktop_notifications 1.0.0
flutter_desktop_notifications: ^1.0.0 copied to clipboard
Native desktop notifications for Flutter. Windows toasts today, with actions, inputs, rich content, and activation callbacks. macOS and Linux planned.
1.0.0 #
First release of flutter_desktop_notifications, a fork and rewrite of
windows_notification by mrtnetwork. Ships a Windows implementation today;
macOS and Linux are planned.
- Structured
NotificationMessage.fromPluginTemplatewith title, body, a small circle-cropped logo, a large image, and a hero image. - Action buttons and input fields (text or selection) built from Dart, with
proper XML escaping. No hand-written markup needed for reply boxes or snooze
lists. Buttons support
success/criticalstyles and a context-menu placement. - Rich content: scenarios (
reminder,alarm,incomingCall,urgent), short/long duration, attribution lines, extra styled text lines, system or loopingNotificationAudio, an indeterminate or determinateNotificationProgress, and adisplayTimestampoverride. WidgetToImage.toPng/toPngFilerender any Flutter widget off-screen to a PNG, for dropping live-generated content into a toast's hero image.NotificationMessage.fromCustomTemplatefor shipping raw toast XML when the built-ins do not cover something.- Activation and dismissal callbacks via
setCallback, carrying the original message, the action arguments, and any typed input. - Remove delivered toasts by id, by group, or all at once.
WindowsNotification.registerAumidwrites the Start Menu shortcut Windows needs to attribute toasts to an unpackaged app's name and icon.WindowsNotification.bringAppToForegroundraises and un-minimizes the window, for the "Open" action in a callback.