Skip to content

Commit 3a434e2

Browse files
committed
Fixes to core and window_manager
1 parent ceb3a1f commit 3a434e2

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

libadwaita_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.4
2+
3+
* Fix copyWith
4+
15
## 0.5.3
26

37
* Fix nullable typedef

libadwaita_core/lib/libadwaita_core.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class AdwControls {
1515
final AdwControlsWidget? maximizeBtn;
1616
final AdwControlsWidget? minimizeBtn;
1717

18-
AdwControls copyWith(
18+
AdwControls copyWith({
1919
AdwControlsWidget? closeBtn,
2020
AdwControlsWidget? maximizeBtn,
2121
AdwControlsWidget? minimizeBtn,
22-
) =>
22+
}) =>
2323
AdwControls(
2424
closeBtn: closeBtn ?? this.closeBtn,
2525
maximizeBtn: maximizeBtn ?? this.maximizeBtn,
@@ -44,14 +44,14 @@ class AdwActions {
4444
final VoidCallback? onHeaderDrag;
4545
final VoidCallback? onRightClick;
4646

47-
AdwActions copyWith(
47+
AdwActions copyWith({
4848
VoidCallback? onClose,
4949
VoidCallback? onMaximize,
5050
VoidCallback? onMinimize,
5151
VoidCallback? onDoubleTap,
5252
VoidCallback? onHeaderDrag,
5353
VoidCallback? onRightClick,
54-
) =>
54+
}) =>
5555
AdwActions(
5656
onClose: onClose ?? this.onClose,
5757
onMaximize: onMaximize ?? this.onMaximize,

libadwaita_core/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: libadwaita_core
22
description: A libadwaita package for providing AdwControls and AdwActions for AdwHeaderBar
3-
version: 0.5.3
3+
version: 0.5.4
44
repository: https://github.com/gtk-flutter/libadwaita_plugins/tree/main/libadwaita_core
55

66
environment:

libadwaita_window_manager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.4
2+
3+
* Hide supportedPlatforms variable
4+
15
## 0.5.3
26

37
* Fix support for web and mobile platforms

libadwaita_window_manager/lib/libadwaita_window_manager.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import 'package:libadwaita_core/libadwaita_core.dart';
77
import 'package:window_manager/window_manager.dart';
88
export 'package:libadwaita_core/libadwaita_core.dart';
99

10-
final supportedPlatform =
10+
final _supportedPlatform =
1111
!kIsWeb && (Platform.isLinux || Platform.isWindows || Platform.isMacOS);
12-
WindowManager? _windowManager = supportedPlatform ? windowManager : null;
12+
WindowManager? _windowManager = _supportedPlatform ? windowManager : null;
1313

1414
Future<void> _maximizeOrRestore() async {
1515
if (_windowManager == null) return;

libadwaita_window_manager/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: libadwaita_window_manager
22
description: A libadwaita package for providing an extension to AdwActions for window_manager package
3-
version: 0.5.3
3+
version: 0.5.4
44
repository: https://github.com/gtk-flutter/libadwaita_plugins/tree/main/libadwaita_window_manager
55

66
environment:
@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
libadwaita_core: ">= 0.5.3 <2.0.0"
13+
libadwaita_core: ">= 0.5.4 <2.0.0"
1414
window_manager: ">= 0.2.5 <1.0.0"
1515

1616
dev_dependencies:

0 commit comments

Comments
 (0)