Skip to content

Commit

Permalink
Fix #46 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia authored Feb 13, 2022
2 parents 66dc9fb + 3f17ccd commit 107e512
Show file tree
Hide file tree
Showing 39 changed files with 1,085 additions and 832 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
flutter analyze . example
- name: Build (Linux)
run: |
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
sudo apt-get update -y && sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
flutter config --enable-linux-desktop
cd example
flutter create --platforms=linux .
Expand All @@ -55,4 +55,4 @@ jobs:
flutter create --platforms=windows .
flutter doctor
flutter build windows
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest'
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
# Changelog

## 1.0.0

### **BREAKING**
- `AdwHeaderBar.minimal` is now `AdwHeaderBar.custom`
- Remove `label` parameter from `AdwTextField`
- `ViewSwitcherStyle` is now `ViewSwitcherPolicy`
- `ViewSwitcherStyle.desktop` and `ViewSwitcherStyle.mobile` are also renamed to `ViewSwitcherPolicy.wide` and `ViewSwitcherPolicy.narrow`

### **Changes to widgets**
**ComboRow**
- Dropdown is now scrollable if too many elements are there

**Flap**
- Renamed `flapController` to `controller`
- Moved most of the things into `FlapStyle` class to simplify its usage in `AdwScaffold`

**HeaderBar**
- Now the `AdwHeaderBar` is not dependent on any package, `windowDecor` object is now optional
- Add `isTransparent` parameter => Makes `AdwHeaderBar`'s background and border color

**Popover**
- Revisit popup menu by using `popover_gtk` package (popover package with fade transition) (#35)

**TextField**
- Add `autofocus` parameter
- Add `prefixIcon` parameter
- Add `onSubmitted` parameter

**ViewSwitcher**
- Add `badge` in `AdwViewSwitcher`

Expand Down Expand Up @@ -59,4 +75,4 @@
- Replace trailing with end
- Replace center with title

For older Changelog visit: https://pub.dev/packages/gtk/changelog
Older CHANGELOG can be found [here](https://pub.dev/packages/gtk/changelog)
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platf
## Usage

- This only provides widgets, for theming you should consider [adwaita](https://pub.dev/packages/adwaita) or [yaru](https://github.com/ubuntu/yaru.dart) package.
- If you want custom titlebar then you can follow the steps for that on [`bitsdojo_window`](https://pub.dev/packages/bitsdojo_window) package.
- If you want custom titlebar then you can follow the steps for that on [`libadwaita_bitsdojo`](https://pub.dev/packages/libadwaita_bitsdojo) package.
- Here is the list of widgets imported from libadwaita library : [widgets.dart](https://github.com/gtk-flutter/libadwaita/blob/main/lib/src/widgets/widgets.dart).

See the example app in the `example` folder for more info.
Expand All @@ -36,14 +36,14 @@ If you want to use default adwaita style window icons or icons using window_deco
| Widget | Docs |
| ------ | ---- |
| `AdwHeaderBar` | Default HeaderBar |
| `AdwHeaderBar.bitsdojo` | HeaderBar to be used with [`bitsdojo`](#bitsdojo_window) package |
| `AdwHeaderBar.bitsdojo` | HeaderBar to be used with [`bitsdojo`](#libadwaita_bitsdojo) package |
| `AdwHeaderBar.nativeshell` | HeaderBar to be used with [`nativeshell`](#nativeshell) package |

If you want to have a custom icon for window button then you have to use any one of the following HeaderBar's:
| Widget | Docs |
| ------ | ---- |
| `AdwHeaderBar.custom` | HeaderBar with custom icon |
| `AdwHeaderBar.customBitsdojo` | HeaderBar to be used with [`bitsdojo`](#bitsdojo_window) package with custom icon |
| `AdwHeaderBar.customBitsdojo` | HeaderBar to be used with [`bitsdojo`](#libadwaita_bitsdojo) package with custom icon |
| `AdwHeaderBar.customNativeshell` | HeaderBar to be used with [`nativeshell`](#nativeshell) package with custom icon |

## Relavant Links
Expand All @@ -62,14 +62,14 @@ For theming
#### [**`adwaita_icons`**](https://pub.dev/packages/adwaita_icons)
For Adwaita Icons

#### [**`bitsdojo_window`**](https://pub.dev/packages/bitsdojo_window)
#### [**`libadwaita_bitsdojo`**](https://pub.dev/packages/libadwaita_bitsdojo)
Can be used with
- `AdwHeaderBar.bitsdojo`
- `AdwHeaderBar.customBitsdojo`

Example:
```dart
import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:libadwaita_bitsdojo/libadwaita_bitsdojo.dart';
AdwHeaderBar.bitsdojo(
...
Expand All @@ -78,6 +78,20 @@ AdwHeaderBar.bitsdojo(
)
```

#### [**`libadwaita_searchbar`**](https://pub.dev/packages/libadwaita_searchbar)
Example:
```dart
import 'package:libadwaita_searchbar/libadwaita_searchbar.dart';
bool searchedTerm = '';
AdwSearchBar(
suggestions: const ['Hi', 'Hello'],
onSubmitted: (str) => setState(() => searchedTerm = str),
controller: const TextEditingController(),
)
```

#### [**`nativeshell`**](https://pub.dev/packages/nativeshell )
Can be used with
- `AdwHeaderBar.nativeshell`
Expand Down
30 changes: 4 additions & 26 deletions assets/icons/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 4 additions & 29 deletions assets/icons/maximize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 4 additions & 29 deletions assets/icons/minimize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 107e512

Please sign in to comment.