skip to Main Content

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:

enter image description here

2

Answers


  1. 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',
    );
    
    Login or Signup to reply.
  2. 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

    dependencies:
      windows_taskbar: ^1.1.0
    

    Set Icon

    WindowsTaskbar.setOverlayIcon(
      ThumbnailToolbarAssetIcon('assets/red_slash.ico'),
      tooltip: 'Stop',
    );
    

    Don’t forget to add the icon file to your pubspec.yaml assets.

    Remove Icon

    WindowsTaskbar.resetOverlayIcon();
    

    NOTE: I’m developer of the package.

    windows_taskbar

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search