Viewing version 0.7.0. Open the latest package page.

gtk

0.7.0

Implements GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME HIG

Download archive

Readme

GTK ❤️ Flutter

Unofficial implementation of GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME Human Interface Guidelines.

GTK+Flutter example screenshot

Features

  • Adwaita style Colors and icons
  • Various GTK widgets ported to flutter
  • Provides various window decorations / titlebar buttons for header bar

Usage

  • To get color from theme you can use either getGtkColor function or getAdaptiveGtkColor function.
  • If you want custom titlebar then you can follow the steps for that on bitsdojo_window package.
  • Following Widgets are currently ported to flutter:
    GtkSidebar, GtkHeaderBar, GtkHeaderButton. GtkPopupMenu, GtkTwoPane.

Additional information

This package is dependent on

Additional packages to use with this package:

Classic API Docs

License

GNU LESSER GENERAL PUBLIC LICENSE v3

Changelog

0.7.0

  • Add GtkViewSwitcher from flutter_gtk package
  • Fix Double tap on header buttons doesn't work.
  • Change default padding for header

0.6.0

  • Remove adwaita_icons from dependency of example
  • Revamp code for GtkSidebar.

0.5.5

  • Remove adwaita_icons from dependency
  • Add default values for onClose, onMinimize and onMaximize for GtkHeaderBar.bitsdojo and .nativeshell.
  • Add titlebarSpace property to adjust the space b/w titlebar and trailing items.

0.5.0+1

  • Rename beignDrag to performDrag for nativeshell Gtk Header.

0.5.0

  • Add onDoubleTap and onHeaderDrag method for GtkHeaderBar
  • Add padding and height parameter to GtkHeaderBar
  • Add GtkHeaderBar.bitsdojo and GtkHeaderBar.nativeshell to integerate well with these plugins

0.4.0+1

  • Update Screenshot

0.4.0

  • Add auto detect gtk theme using GtkColorType.system by @MalcolmMielle
  • Update Window Decorations plugin
  • Add isActive parameter to Gtk popup button

0.2.3

  • Change children to body for GtkPopupMenu
  • Update Documentation and comments
  • Update get Gtk color logic
  • Update example by adding bitsdojo_window
  • Update Screenshot

0.2.0+2

  • Fix typo in README
  • Add Screenshot in README

0.2.0+1

  • Update github homepage

0.2.0

  • Remove bitsdojo_window dependency

0.1.0+1

  • Fix Readme

0.1.0

  • initial release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'gtk:0.7.0'
pubspec.yaml
name: gtk
description: Implements GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME HIG
version: 0.7.0
homepage: https://github.com/prateekmedia/gtk-flutter

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

dependencies:
  flutter:
    sdk: flutter
  from_css_color: ">=2.0.0 <3.0.0"
  gsettings: ">=0.1.2+1 <1.0.0"
  popover: ">=0.2.6 <1.0.0"
  window_decorations: ">=0.3.0 <1.0.0"
  xdg_directories: ^0.2.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ">=1.0.0 <2.0.0"

flutter:

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownloadef9b882f…1b26b5
0.1.0+1Cached · Upstream SHA-256 matchedDownloadca70f6c3…d794a3
0.2.0Cached · Upstream SHA-256 matchedDownload8045cff8…7ff973
0.2.0+1Cached · Upstream SHA-256 matchedDownloadb38fde1b…72f4d7
0.2.0+2Cached · Upstream SHA-256 matchedDownload9a333a93…de735c
0.2.3Cached · Upstream SHA-256 matchedDownload79a5c345…eb6800
0.4.0Cached · Upstream SHA-256 matchedDownload396a38f0…03acbd
0.4.0+1Cached · Upstream SHA-256 matchedDownload5b4921bb…f62e08
0.5.0Cached · Upstream SHA-256 matchedDownloadf1de0c93…5c7475
0.5.0+1Cached · Upstream SHA-256 matchedDownload5a6b4cf3…c39329
0.5.5Cached · Upstream SHA-256 matchedDownload3f7ae581…14d771
0.6.0Cached · Upstream SHA-256 matchedDownload03bf5785…4792b5
0.7.0Cached · Upstream SHA-256 matchedDownload32b68ce0…5c69c8
0.7.0+1Cached · Upstream SHA-256 matchedDownload17067a52…62d9b2
0.8.0Cached · Upstream SHA-256 matchedDownload3b802bc6…f6581d
0.8.5Cached · Upstream SHA-256 matchedDownload201e5323…8af9a4
0.9.0Cached · Upstream SHA-256 matchedDownloadc50ba547…857b5d
0.9.5Cached · Upstream SHA-256 matchedDownload4e386c43…a7555b
0.9.8Cached · Upstream SHA-256 matchedDownloadd66096f7…5a58eb
0.9.8+1Cached · Upstream SHA-256 matchedDownload4d1be563…7e6288
1.0.0-rc.0Cached · Upstream SHA-256 matchedDownload8771c670…bb2b81
1.0.0-rc.1Cached · Upstream SHA-256 matchedDownloada88f7144…1e5a5d
1.0.0-rc.2Cached · Upstream SHA-256 matchedDownloadb8c40027…6f6189
1.0.0-rc.3Cached · Upstream SHA-256 matchedDownload5b240b07…6435ce
1.0.0-rc.4Cached · Upstream SHA-256 matchedDownload4ce226e7…3b905c
1.0.0-rc.5Cached · Upstream SHA-256 matchedDownloadb2c42722…92e88c
1.0.0-rc.6Cached · Upstream SHA-256 matchedDownloaddec60264…d57f6c
1.0.0-rc.7Cached · Upstream SHA-256 matchedDownload6b85ca1c…b14540
1.0.0-rc.8Cached · Upstream SHA-256 matchedDownloadb5970922…3db33b
1.0.0-rc.9Cached · Upstream SHA-256 matchedDownloadef4792e1…213551
1.0.0Cached · Upstream SHA-256 matchedDownload53def554…859450
2.0.0-beta.0Cached · Upstream SHA-256 matchedDownload56607b30…5badcb
2.0.0-beta.1Cached · Upstream SHA-256 matchedDownload47f78712…8fad91
2.0.0Cached · Upstream SHA-256 matchedDownload517560d6…e7a3f5
2.1.0Cached · Upstream SHA-256 matchedDownloade8ce9ca4…ffa42c
2.2.0Cached · Upstream SHA-256 matchedDownload4ff85b2a…879cf5

Dependencies

flutter { "sdk": "flutter" }

from_css_color "\u003e=2.0.0 \u003c3.0.0"

gsettings "\u003e=0.1.2+1 \u003c1.0.0"

popover "\u003e=0.2.6 \u003c1.0.0"

window_decorations "\u003e=0.3.0 \u003c1.0.0"

xdg_directories "^0.2.0"