I can't seem to find this one. Is it possible to add the number on the app icon? (windows desktop)
For example this is Telegram on windows:
I can't seem to find this one. Is it possible to add the number on the app icon? (windows desktop)
For example this is Telegram on windows:
You can use package:windows_taskbar
to add badge (overlay icon) to your Flutter Windows app's taskbar icon.
You have to create icons yourself though, maybe "1", "2", "3"... "9" & "9+" like most applications (as .ico
files).
It's very easy to use as well.
dependencies:
windows_taskbar: ^1.1.0
WindowsTaskbar.setOverlayIcon(
ThumbnailToolbarAssetIcon('assets/red_slash.ico'),
tooltip: 'Stop',
);
Don't forget to add the icon file to your pubspec.yaml
assets.
WindowsTaskbar.resetOverlayIcon();
NOTE: I'm developer of the package.
These badges are autocreated on notification. There arent much packages for notifications in windows. You can give this a try.
quick_notify: ^0.2.1
QuickNotify.notify(
title: 'My title',
content: 'My content',
);