Skip to content

nikitatg/windows_taskbar

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Flutter plugin serving utilities related to Windows taskbar.

Install

dependencies:
  windows_taskbar: ^1.1.1

Checkout the example Flutter application here.

Docs

Set thumbnail toolbar

WindowsTaskbar.setThumbnailToolbar(
  [
  ThumbnailToolbarButton(
    ThumbnailToolbarAssetIcon('assets/camera.ico'),
      'Turn On Camera',
      () {},
    ),
    ThumbnailToolbarButton(
      ThumbnailToolbarAssetIcon('assets/microphone.ico'),
      'Mute',
      () {},
      mode: ThumbnailToolbarButtonMode.disabled | ThumbnailToolbarButtonMode.dismissionClick,
    ),
    ThumbnailToolbarButton(
      ThumbnailToolbarAssetIcon('assets/end_call.ico'),
      'Disconnect',
      () {},
    ),
  ],
);

Remove thumbnail toolbar

WindowsTaskbar.resetThumbnailToolbar();

Set progress mode

WindowsTaskbar.setProgressMode(TaskbarProgressMode.indeterminate);

Set progress

WindowsTaskbar.setProgress(69, 100);

Set thumbnail tooltip

WindowsTaskbar.setThumbnailTooltip('Awesome Flutter window.');

Flash windows taskbar app icon

WindowsTaskbar.setFlashTaskbarAppIcon(
  mode: TaskbarFlashMode.all | TaskbarFlashMode.timernofg,
  timeout: const Duration(milliseconds: 500),
);

Stop flashing windows taskbar app icon

WindowsTaskbar.resetFlashTaskbarAppIcon();

Set overlay icon (a badge)

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

Remove overlay icon (a badge)

WindowsTaskbar.resetOverlayIcon();

Set window title (or taskbar button label)

WindowsTaskbar.setWindowTitle('Never Gonna Give You Up');

Reset window title (or taskbar button label)

WindowsTaskbar.resetWindowTitle();

Please see API reference for extended information & more detail about various configurations.

Sponsor

You may consider buying me a coffee if you like this package.

License

Copyright ยฉ 2021 & onwards, Hitesh Kumar Saini <[email protected]>

This library & all the work in this repository is under MIT license that can be found in the LICENSE file.

About

Flutter plugin serving utilities related to Windows taskbar. ๐Ÿ’™

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 48.0%
  • Dart 38.2%
  • CMake 12.1%
  • C 1.7%