Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmercerind/windows_taskbar
Flutter library serving utilities related to Windows taskbar.
https://github.com/alexmercerind/windows_taskbar
desktop flutter hacktoberfest itaskbarlist3 taskbar thumbnail-toolbar win32 windows
Last synced: about 17 hours ago
JSON representation
Flutter library serving utilities related to Windows taskbar.
- Host: GitHub
- URL: https://github.com/alexmercerind/windows_taskbar
- Owner: alexmercerind
- License: mit
- Created: 2021-10-19T11:30:00.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T10:15:55.000Z (over 1 year ago)
- Last Synced: 2024-12-25T21:07:38.819Z (8 days ago)
- Topics: desktop, flutter, hacktoberfest, itaskbarlist3, taskbar, thumbnail-toolbar, win32, windows
- Language: C++
- Homepage:
- Size: 1.16 MB
- Stars: 161
- Watchers: 5
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - windows_taskbar - Flutter plugin serving utilities related to Windows taskbar. (Packages)
README
# [windows_taskbar](https://github.com/alexmercerind/windows_taskbar)
#### Flutter plugin serving utilities related to Windows taskbar.
## Installation
Add package to the dependencies section of the `pubspec.yaml`:
```yaml
dependencies:
windows_taskbar: ^1.1.2
```
## Guide
A minimal usage guide for [package:windows_taskbar](https://github.com/alexmercerind/windows_taskbar).
### Contents
- [Set thumbnail toolbar](#set-thumbnail-toolbar)
- [Remove thumbnail toolbar](#remove-thumbnail-toolbar)
- [Set progress mode](#set-progress-mode)
- [Set progress](#set-progress)
- [Set thumbnail tooltip](#set-thumbnail-tooltip)
- [Flash windows taskbar app icon](#flash-windows-taskbar-app-icon)
- [Stop flashing windows taskbar app icon](#stop-flashing-windows-taskbar-app-icon)
- [Set overlay icon (badge)](#set-overlay-icon-badge)
- [Remove overlay icon (badge)](#remove-overlay-icon-badge)
- [Set window title (taskbar button label)](#set-window-title-taskbar-button-label)
- [Reset window title (or taskbar button label)](#reset-window-title-taskbar-button-label)
- [Next steps](#next-steps)#### Set thumbnail toolbar
```dart
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
```dart
WindowsTaskbar.resetThumbnailToolbar();
```#### Set progress mode
```dart
WindowsTaskbar.setProgressMode(TaskbarProgressMode.indeterminate);
```#### Set progress
```dart
WindowsTaskbar.setProgress(69, 100);
```#### Set thumbnail tooltip
```dart
WindowsTaskbar.setThumbnailTooltip('Awesome Flutter window.');
```#### Flash windows taskbar app icon
```dart
WindowsTaskbar.setFlashTaskbarAppIcon(
mode: TaskbarFlashMode.all | TaskbarFlashMode.timernofg,
timeout: const Duration(milliseconds: 500),
);
```#### Stop flashing windows taskbar app icon
```dart
WindowsTaskbar.resetFlashTaskbarAppIcon();
```#### Set overlay icon (badge)
```dart
WindowsTaskbar.setOverlayIcon(
ThumbnailToolbarAssetIcon('assets/red_slash.ico'),
tooltip: 'Stop',
);
```#### Remove overlay icon (badge)
```dart
WindowsTaskbar.resetOverlayIcon();
```#### Set window title (taskbar button label)
```dart
WindowsTaskbar.setWindowTitle('Never Gonna Give You Up');
```#### Reset window title (taskbar button label)
```dart
WindowsTaskbar.resetWindowTitle();
```#### Next steps
- [API reference](https://pub.dev/documentation/windows_taskbar/latest/windows_taskbar/windows_taskbar-library.html) can be helpful for diving into deeper specifics.
- [Source-code of the example application](https://github.com/alexmercerind/windows_taskbar/blob/master/example/lib/main.dart) offers some complete code samples.## Sponsor
You may consider buying me a coffee if you like this package.
- [GitHub Sponsors](https://github.com/sponsors/alexmercerind)
- [PayPal](https://paypal.me/alexmercerind)## License
Copyright © 2021 & onwards, Hitesh Kumar Saini <>
This project & the work under this repository is governed by MIT license that can be found in the [LICENSE](https://github.com/alexmercerind/windows_taskbar/blob/master/LICENSE) file.