Skip to content

Commit

Permalink
Merge pull request #85 from gtk-flutter/next
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Jun 4, 2023
2 parents fe6a735 + 4b5a611 commit 8d64db9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 42 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
---
# This is a basic workflow to help you get started with Actions
name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request
# events but only for the main branch
push:
branches: [main]
paths-ignore:
- '**/README.md'
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -22,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
Expand All @@ -48,11 +42,11 @@ jobs:
flutter create --platforms=linux .
flutter build linux
if: matrix.os == 'ubuntu-latest'
- name: Build (Windows)
run: |
flutter config --enable-windows-desktop
cd example
flutter create --platforms=windows .
flutter doctor
flutter build windows
if: matrix.os == 'windows-latest'
# - name: Build (Windows)
# run: |
# flutter config --enable-windows-desktop
# cd example
# flutter create --platforms=windows .
# flutter doctor
# flutter build windows
# if: matrix.os == 'windows-latest'
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 2.0.1

* Fix window action buttons not visible sometimes

## 2.0.0

* Add Windows & Mac os headerbar buttons (using `nativeControls` parameter)
* Add Windows & macOS headerbar buttons (using `nativeControls` parameter)
* Add builder for `AdwPreferencesGroup`
* Update Documentation for various widgets
* Support Material 3 font naming scheme
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.0"
version: "2.0.1"
libadwaita_core:
dependency: transitive
description:
Expand Down
46 changes: 23 additions & 23 deletions lib/src/widgets/adw/new/window_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,34 @@ class AdwWindowButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return onPressed != null
? !nativeControls || Platform.isLinux
? AdwButton.circular(
size: 24,
margin: const EdgeInsets.all(6),
? nativeControls && Platform.isWindows
? WindowCaptionButton(
onPressed: onPressed,
child: Center(
child: SvgPicture.asset(
'assets/icons/${buttonType.name}.svg',
width: 16,
package: 'libadwaita',
height: 16,
colorFilter:
ColorFilter.mode(context.textColor, BlendMode.srcIn),
),
),
brightness: Theme.of(context).brightness,
type: buttonType,
)
: Platform.isWindows
? WindowCaptionButton(
: nativeControls && Platform.isMacOS
? MacOSCaptionButton(
onPressed: onPressed,
brightness: Theme.of(context).brightness,
type: buttonType,
)
: Platform.isMacOS
? MacOSCaptionButton(
onPressed: onPressed,
type: buttonType,
)
: const SizedBox()
: AdwButton.circular(
size: 24,
margin: const EdgeInsets.all(6),
onPressed: onPressed,
child: Center(
child: SvgPicture.asset(
'assets/icons/${buttonType.name}.svg',
width: 16,
package: 'libadwaita',
height: 16,
colorFilter: ColorFilter.mode(
context.textColor,
BlendMode.srcIn,
),
),
),
)
: const SizedBox();
}
}
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: libadwaita
description: Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.
version: 2.0.0
description: Libadwaita's widgets for Flutter.
Following Gnome HIG and available on all platforms.
version: 2.0.1
homepage: https://github.com/gtk-flutter/libadwaita

environment:
Expand Down

0 comments on commit 8d64db9

Please sign in to comment.