p-hatan/ mirror

pub repository

mirror.p-hatan.ir

window_decorations

2.0.2+1

A package which provides most of the window decorations from linux themes.

This package is discontinued upstream.

Download archive

Readme

Window Decorations

A package which provides most of the window decorations from linux themes.

materia
breeze
osx_arc
yaru

Features

  • Easier to use and implement
  • Native looking window buttons for close, minimize and maximize actions

Usage

Let's say you want a minimize button with look and feel of yaru theme, you can do that with DecoratedMinimizeButton which comes with a type property which accepts ThemeType (defaults to auto)

DecoratedMinimizeButton(
    type: ThemeType.yaru,
    onPressed: () {},
),

Similarly you can use DecoratedCloseButton for close button and DecoratedMaximizeButton for maximize button.

LICENSE

Mozilla Public License 2.0

Changelog

Changelog

2.0.2+1

  • Fix README

2.0.2

  • Relicense under MPL-2.0

2.0.0+2

  • Fix windowDecor logic

2.0.0+1

  • Fix support with libadwaita
  • Try to support all platforms

2.0.0

  • Remove old svg's
  • Support all platforms

1.0.0

  • Bump flutter_svg version
  • Update Pop os buttons

0.9.8

  • Bump flutter_svg version

0.9.5

  • Fix when themeType is not supplied

0.9.2

  • Add windowDecor object to simplify usage with gtk package

0.9.1

  • Made type property nullable for buttons

0.9.0

  • Update gsettings

0.5.5

  • Update README
  • Update License

0.4.0

  • Changed cursor back to normal position
  • Format decorated button file

0.3.0+1

  • Dispose Settings after used.

0.3.0

  • Add Theme type auto detect mode.

0.2.0

  • Switch b/w light and dark variants of buttons automatically.
  • Update Documentation

0.1.0+1

  • Update README

0.1.0

  • Init Release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add window_decorations
pubspec.yaml
name: window_decorations
description: A package which provides most of the window decorations from linux themes.
version: 2.0.2+1
homepage: https://github.com/prateekmedia/window_decorations

environment:
  sdk: ">=2.12.0 <3.0.0"
  flutter: ">=1.17.0"

platforms:
  android:
  ios:
  linux:
  macos:
  web:
  windows:

dependencies:
  change_case: ">=1.0.1 < 2.0.0"
  dbus: ">=0.7.1 <1.0.0"
  flutter:
    sdk: flutter
  flutter_svg: ">=1.0.0 <2.0.0"
  gsettings: ">=0.2.5 <1.0.0"

dev_dependencies:
  flutter_test:
    sdk: flutter
  very_good_analysis: ">=2.4.0 <3.0.0"

flutter:
  assets:
    - assets/themes/adwaita/
    - assets/themes/arc-dark/
    - assets/themes/arc-light/
    - assets/themes/breeze/
    - assets/themes/flat-remix/
    - assets/themes/materia-dark/
    - assets/themes/materia-light/
    - assets/themes/nordic/
    - assets/themes/osx-arc/
    - assets/themes/pop-dark/
    - assets/themes/pop-light/
    - assets/themes/unity-dark/
    - assets/themes/unity-light/
    - assets/themes/vimix/
    - assets/themes/yaru/

Version history

VersionPublishedArchiveSHA-256
0.1.02021-08-08T19:14:59.960634ZDownload059fc22d7380b41749aa8c095eef3cc810b31fbb6343446ae64e849d4985a1e8
0.1.0+12021-08-09T10:41:55.570043ZDownloaddb5215fb5e7991cb2ee087b875b5d4680605ee54e5cf2627e7620e5e27e0107c
0.2.02021-08-09T11:26:57.813818ZDownloadfe7dbfdc0fb67c8f61fad4eb32eb2ab0371d8c870596d60b20fa2ca41861a150
0.3.02021-08-09T16:38:05.025380ZDownload8868c9db85078a7ea37989b91d17a73bd1c2de1c3be48ef2d86f8b7e6c4d7476
0.3.0+12021-08-09T16:55:27.858084ZDownload9639e0fd525b1865ce9f6df4601bd66d5599e81349fd74bceef23a7396f3368f
0.4.02021-08-21T11:36:06.657074ZDownloadc96768a2a8d50241e1a262e1dc2d0b2d9c14dd2ffd6fa0fee274774998b1246d
0.5.52021-08-23T09:46:11.600519ZDownloadbae9856dfc9e12836a9f280281a8e00119070018d36b853d52f10190aa0585e8
0.9.02021-09-20T17:17:30.705618ZDownload158f8470441bbcf111646cdfed1058db89fa5d17db19feb33821aa2d9ca54abf
0.9.12021-09-29T05:27:42.350656ZDownload79f94efa7e629061b2c5d21604e9f698aa1e98f670e231bace1a359ee7325908
0.9.22021-09-29T05:50:54.544639ZDownload236acb5264a63d54c7e0224afb49f14ce89597f5b648bc653111510f84b51ce3
0.9.52021-09-29T06:15:20.471538ZDownloada91a17fea392e840256dc1983d1c281264b8aa5ad92f78bb52a184adfcdc40d2
0.9.82021-10-15T05:17:08.127465ZDownload0d05b12c2374f97f3f583fffe0b77f7dfb734482b5c7a86e2f0523e249fe13d7
1.0.02021-12-09T20:22:20.630886ZDownload7f37110703b9dcee46e027f437244e70870aa3497abd614b0753aba6d3da93f8
2.0.02022-02-09T07:41:36.563887ZDownloadac754125aa0d655e564cc6d7f1e7a16ed136f691534d30748dbb6ed6358e1cb3
2.0.0+12022-02-12T10:57:14.249327ZDownload67f2f1d5325467ffaa484c89c00df630b69692e8a5066fc50e5e086526630b46
2.0.0+22022-02-12T11:06:56.919687ZDownload943c7c7a32c88471ac7755a9ef14be58a570688a5dbeb7fc4a76bd33ebfba238
2.0.2+12022-02-14T22:29:59.134387ZDownload7ea18d927092886897eb880e743112e55600f6083078fd0698d665f839f5019d
2.0.32022-02-17T18:20:42.752023ZDownload05232c8738aa05f18da706a1ff8da340fe0f952ba75de603f14a5a99782cccc5

Dependencies

change_case "\u003e=1.0.1 \u003c 2.0.0"

dbus "\u003e=0.7.1 \u003c1.0.0"

flutter { "sdk": "flutter" }

flutter_svg "\u003e=1.0.0 \u003c2.0.0"

gsettings "\u003e=0.2.5 \u003c1.0.0"