Flutter plugin serving utilities related to Windows taskbar.
dependencies:
windows_taskbar: ^1.1.1
Checkout the example Flutter application here.
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();
Please see API reference for extended information & more detail about various configurations.
You may consider buying me a coffee if you like this package.
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.