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:
2
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', );
You can use package:windows_taskbar to add badge (overlay icon) to your Flutter Windows app’s taskbar icon.
package:windows_taskbar
You have to create icons yourself though, maybe "1", "2", "3"… "9" & "9+" like most applications (as .ico files).
.ico
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.
pubspec.yaml
WindowsTaskbar.resetOverlayIcon();
NOTE: I’m developer of the package.
Click here to cancel reply.
2
Answers
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
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.
Add in pubspec.yaml
Set Icon
Don’t forget to add the icon file to your
pubspec.yaml
assets.Remove Icon
NOTE: I’m developer of the package.