Skip to content

Commit

Permalink
fix: window buttons auto position (for mobile devices) (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia authored Jul 10, 2023
1 parent 8d64db9 commit 68ce6f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.2

* Fix for automatically position window buttons property

## 2.0.1

* Fix window action buttons not visible sometimes
Expand Down
4 changes: 3 additions & 1 deletion lib/src/widgets/adw/header_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
widget.maximizeBtn != null;

late ValueNotifier<List<String>?> separator =
!kIsWeb && (Platform.isLinux || Platform.isWindows || Platform.isMacOS)
!widget.style.autoPositionWindowButtons ||
!kIsWeb &&
(Platform.isLinux || Platform.isWindows || Platform.isMacOS)
? ValueNotifier(
['', 'minimize,maximize,close'],
)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: libadwaita
description: Libadwaita's widgets for Flutter.
Following Gnome HIG and available on all platforms.
version: 2.0.1
version: 2.0.2
homepage: https://github.com/gtk-flutter/libadwaita

environment:
Expand Down

0 comments on commit 68ce6f1

Please sign in to comment.