Add package to the dependencies section of the pubspec.yaml
:
dependencies:
windows_taskbar: ^1.1.2
A minimal usage guide for package:windows_taskbar.
- Set thumbnail toolbar
- Remove thumbnail toolbar
- Set progress mode
- Set progress
- Set thumbnail tooltip
- Flash windows taskbar app icon
- Stop flashing windows taskbar app icon
- Set overlay icon (badge)
- Remove overlay icon (badge)
- Set window title (taskbar button label)
- Reset window title (or taskbar button label)
- Next steps
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',
() {},
),
],
);
WindowsTaskbar.resetThumbnailToolbar();
WindowsTaskbar.setProgressMode(TaskbarProgressMode.indeterminate);
WindowsTaskbar.setProgress(69, 100);
WindowsTaskbar.setThumbnailTooltip('Awesome Flutter window.');
WindowsTaskbar.setFlashTaskbarAppIcon(
mode: TaskbarFlashMode.all | TaskbarFlashMode.timernofg,
timeout: const Duration(milliseconds: 500),
);
WindowsTaskbar.resetFlashTaskbarAppIcon();
WindowsTaskbar.setOverlayIcon(
ThumbnailToolbarAssetIcon('assets/red_slash.ico'),
tooltip: 'Stop',
);
WindowsTaskbar.resetOverlayIcon();
WindowsTaskbar.setWindowTitle('Never Gonna Give You Up');
WindowsTaskbar.resetWindowTitle();
- API reference can be helpful for diving into deeper specifics.
- Source-code of the example application offers some complete code samples.
You may consider buying me a coffee if you like this package.
Copyright © 2021 & onwards, Hitesh Kumar Saini <saini123hitesh@gmail.com>
This project & the work under this repository is governed by MIT license that can be found in the LICENSE file.