# gtk 1.0.0

MOVED TO https://pub.dev/packages/libadwaita




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'gtk:1.0.0'
```
Published: 2021-11-17T08:39:51.593900Z
Expected archive SHA-256: 53def55487dd7207a6a597df83120a96a219bc143e1001e974a16e273a859450

Available in cache; verification: upstream_checksum
## Direct dependencies
- dbus: >=0.6.3 <1.0.0
- flutter: map[sdk:flutter]
- gsettings: >=0.2.0 <1.0.0
- popover: >=0.2.6+2 <1.0.0

## Package README (untrusted upstream documentation)
## MOVED TO [libadwaita](https://pub.dev/packages/libadwaita)

## GTK ❤️ Flutter

[![Pub.dev](https://img.shields.io/pub/v/gtk.svg)](https://pub.dev/packages/gtk)
[![License](https://img.shields.io/github/license/prateekmedia/gtk-flutter?color=indigo)](LICENSE)
[![Maintainer](https://img.shields.io/badge/Maintainer-prateekmedia-informational)](https://github.com/prateekmedia)

Unofficial implementation of GTK Widgets and libadwaita in Flutter. Based on the GNOME Human Interface Guidelines.

![GTK+Flutter example screenshot](https://user-images.githubusercontent.com/41370460/137439130-571c6d74-b3f5-4f01-8c11-3ea8de562dd3.jpg)

**NOTE:** For getting colors from gtk 3.0 theme use version [`<=0.9.8+1`](https://pub.dev/packages/gtk/versions/0.9.8+1)

### Features

- Various GTK widgets ported to flutter
- Can be used with any material theme (e.g. [libawaita](https://pub.dev/packages/adwaita) and [yaru](https://github.com/ubuntu/yaru.dart))
- Compatible with [various packages](#additional-information)

### Usage

- If you want custom titlebar then you can follow the steps for that on [`bitsdojo_window`](https://pub.dev/packages/bitsdojo_window) package.
- Following Widgets are currently ported to flutter:
    - `GtkContainer`
    - `GtkHeaderBar`
    - `GtkHeaderBarMinimal`
    - `GtkHeaderButton`
    - `GtkPopupMenu`
    - `GtkSidebar`
    - `GtkTwoPane`
    - `GtkViewSwitcher`
    - `GtkViewSwitcherTab`

See the example app in the `example` folder.

### Additional information

This package is dependent on
- [`popover`](https://pub.dev/packages/popover) for GtkPopover.
- [`window_decorations`](https://pub.dev/packages/window_decorations) for Window Decorations (doesn't needed if you use `GtkHeaderBarMinimal`)

Optional packages to use with this package:
- [`adwaita_icons`](https://pub.dev/packages/adwaita_icons) for Adwaita Icons
- [`bitsdojo_window`](https://pub.dev/packages/bitsdojo_window) for better look and feel with custom GtkHeaderBar.bitsdojo
- [`nativeshell`](https://pub.dev/packages/nativeshell) for better look and feel with custom GtkHeaderBar.nativeshell

[Classic API Docs](https://pub.dev/documentation/gtk/latest/)

### License

`LGPL v3 / GNU LESSER GENERAL PUBLIC LICENSE v3`

TLDR;
- You are free to use [this](https://pub.dev/packages/gtk) package in whatever app you want,
- If you improve the package then you should submit your patches / improvements to [this](https://github.com/prateekmedia/gtk-flutter) repository.
## Changelog
## 1.0.0-rc.9

- Change adwaitaLight and adwaitaDark type to getters instead of Function

## 1.0.0-rc.8

- Fix canvasColor not working

## 1.0.0-rc.7

- Add documentation for colors in libadwaita_theme
- Add adwaitaLight and adwaitaDark for LibAdwaita Theme

## 1.0.0-rc.6

- `GnomeTheme` is now deprecated, use `Theme.of(context).[color]` to get whatever color you want.

## 1.0.0-rc.5

- Get native window button placement by using gsetting schema

## 1.0.0-rc.4

- Made width nullable and fix defaults for `GtkContainer`
- Update Screenshot

## 1.0.0-rc.3

- Fix ViewSwitcher color
- Add `GtkContainer` custom widget
- Add new example app
- Fix gtk sidebar item bg color

## 1.0.0-rc.2

- Fix error when no leading icon was provided for the sidebar
- Rename `gtk_colors.dart` to `gtk_theme.dart` and moved it to the widgets directory
- Fix imports in the files

## 1.0.0-rc.1

- Remove gnomeTheme parameter requirement for gtk_sidebar
- Add details about paramters of `GnomeTheme.of(context)`

## 1.0.0-rc.0

- Use color schemes from libadwaita

## 0.9.8+1

- Remove dead code

## 0.9.8

- Add riverpod example
- Fix selected and unselected color for gtk sidebar
- Fix initial color parsing

## 0.9.5

- Fix instructions on how to use window decoration
- Update README and screenshot

## 0.9.0

- Update gsettings to latest version
- Fix native theme picker by @MalcolmMielle
- Made Window Decorations a seperate package to keep this package lightweight

## 0.8.5

- Use NavigationToolbar instead of Stack to center widget.

## 0.8.0

- Update example
- Add expanded and height property to GtkViewSwitcher

## 0.7.0+1

- Fix Padding of Icons with Gtk header button
- Update `titlebarSpace` and `padding` for `GtkHeaderBar`

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







 
