Skip to content

Commit 68ce6f1

Browse files
authored
fix: window buttons auto position (for mobile devices) (#86)
1 parent 8d64db9 commit 68ce6f1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.0.2
4+
5+
* Fix for automatically position window buttons property
6+
37
## 2.0.1
48

59
* Fix window action buttons not visible sometimes

lib/src/widgets/adw/header_bar.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
118118
widget.maximizeBtn != null;
119119

120120
late ValueNotifier<List<String>?> separator =
121-
!kIsWeb && (Platform.isLinux || Platform.isWindows || Platform.isMacOS)
121+
!widget.style.autoPositionWindowButtons ||
122+
!kIsWeb &&
123+
(Platform.isLinux || Platform.isWindows || Platform.isMacOS)
122124
? ValueNotifier(
123125
['', 'minimize,maximize,close'],
124126
)

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: libadwaita
22
description: Libadwaita's widgets for Flutter.
33
Following Gnome HIG and available on all platforms.
4-
version: 2.0.1
4+
version: 2.0.2
55
homepage: https://github.com/gtk-flutter/libadwaita
66

77
environment:

0 commit comments

Comments
 (0)