-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c76e4c
commit e767914
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<h1 align="center"><a href="https://github.com/alexmercerind/windows_taskbar">windows_taskbar</a></h1> | ||
<h4 align="center">Flutter plugin serving utilities related to Windows taskbar 💙</h4> | ||
|
||
## Install | ||
|
||
```yaml | ||
dependencies: | ||
windows_taskbar: ^0.0.1 | ||
``` | ||
## Demo | ||
Checkout the example Flutter application [here](https://github.com/alexmercerind/windows_taskbar/blob/master/example/lib/main.dart). | ||
![](https://github.com/alexmercerind/windows_taskbar/blob/assets/bMebejv57F.gif) | ||
![](https://github.com/alexmercerind/windows_taskbar/blob/assets/OdzgD1yqEO.gif) | ||
## Documentation | ||
**Set thumbnail toolbar** | ||
```dart | ||
WindowsTaskbar.setThumbnailToolbar( | ||
[ | ||
ThumbnailToolbarButton( | ||
ThumbnailToolbarAssetIcon('res/previous.ico'), | ||
'Button 1', | ||
() {}, | ||
), | ||
ThumbnailToolbarButton( | ||
ThumbnailToolbarAssetIcon('res/pause.ico'), | ||
'Button 2', | ||
() {}, | ||
mode: ThumbnailToolbarButtonMode.disabled | ThumbnailToolbarButtonMode.dismissionClick, | ||
), | ||
ThumbnailToolbarButton( | ||
ThumbnailToolbarAssetIcon('res/next.ico'), | ||
'Button 3', | ||
() {}, | ||
), | ||
], | ||
); | ||
``` | ||
|
||
**Clear thumbnail toolbar** | ||
|
||
```dart | ||
WindowsTaskbar.clearThumbnailToolbar(); | ||
``` | ||
|
||
**Set progress mode** | ||
|
||
```dart | ||
WindowsTaskbar.setProgressMode(TaskbarProgressMode.indeterminate); | ||
``` | ||
|
||
**Set progress** | ||
|
||
```dart | ||
WindowsTaskbar.setProgress(69, 100); | ||
``` | ||
|
||
**Set thumbnail tooltip** | ||
|
||
```dart | ||
WindowsTaskbar.setThumbnailTooltip('Awesome Flutter window.); | ||
``` | ||
|
||
## License | ||
|
||
GNU Lesser General Public License v2.1 | ||
|
||
Copyright © 2021, Hitesh Kumar Saini <<saini123hitesh@gmail.com>> | ||
|
||
Contributions welcomed. | ||
|