Viewing version 2.0.3. Open the latest package page.

window_decorations

2.0.3

Deprecated, use https://pub.dev/packages/titlebar_buttons

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.3

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.com
flutter pub add 'window_decorations:2.0.3'
pubspec.yaml
name: window_decorations
description: Deprecated, use https://pub.dev/packages/titlebar_buttons
version: 2.0.3
homepage: https://github.com/gtk-flutter/titlebar_buttons

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.0Cached · Upstream SHA-256 matchedDownload059fc22d…85a1e8
0.1.0+1Cached · Upstream SHA-256 matchedDownloaddb5215fb…e0107c
0.2.0Cached · Upstream SHA-256 matchedDownloadfe7dbfdc…61a150
0.3.0Cached · Upstream SHA-256 matchedDownload8868c9db…4d7476
0.3.0+1Cached · Upstream SHA-256 matchedDownload9639e0fd…f3368f
0.4.0Cached · Upstream SHA-256 matchedDownloadc96768a2…b1246d
0.5.5Cached · Upstream SHA-256 matchedDownloadbae9856d…0585e8
0.9.0Cached · Upstream SHA-256 matchedDownload158f8470…a54abf
0.9.1Cached · Upstream SHA-256 matchedDownload79f94efa…325908
0.9.2Cached · Upstream SHA-256 matchedDownload236acb52…b51ce3
0.9.5Cached · Upstream SHA-256 matchedDownloada91a17fe…dc40d2
0.9.8Cached · Upstream SHA-256 matchedDownload0d05b12c…fe13d7
1.0.0Cached · Upstream SHA-256 matchedDownload7f371107…da93f8
2.0.0Cached · Upstream SHA-256 matchedDownloadac754125…8e1cb3
2.0.0+1Cached · Upstream SHA-256 matchedDownload67f2f1d5…630b46
2.0.0+2Cached · Upstream SHA-256 matchedDownload943c7c7a…fba238
2.0.2+1Cached · Upstream SHA-256 matchedDownload7ea18d92…f5019d
2.0.3Cached · Upstream SHA-256 matchedDownload05232c87…2cccc5

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"