Skip to content

Commit 537d267

Browse files
Merge pull request #13 from Adrian-Samoticha/issue_12
Issue #12
2 parents c218c51 + 244fbf5 commit 537d267

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.2
2+
3+
- Fix incompatibility with Flutter 3.7.0.
4+
15
## 1.0.1
26

37
- Add `setLevel` method.

example/macos/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ EXTERNAL SOURCES:
1414
:path: Flutter/ephemeral/.symlinks/plugins/macos_window_utils/macos
1515

1616
SPEC CHECKSUMS:
17-
FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
17+
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
1818
macos_window_utils: 933f91f64805e2eb91a5bd057cf97cd097276663
1919

2020
PODFILE CHECKSUM: 500e4707112a5f11963bc198135953cdebb6d50c

example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXAggregateTarget section */
@@ -255,6 +255,7 @@
255255
/* Begin PBXShellScriptBuildPhase section */
256256
3399D490228B24CF009A79C7 /* ShellScript */ = {
257257
isa = PBXShellScriptBuildPhase;
258+
alwaysOutOfDate = 1;
258259
buildActionMask = 2147483647;
259260
files = (
260261
);

macos/Classes/MacOSWindowUtilsViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public class MacOSWindowUtilsViewController: NSViewController {
3838

3939
flutterViewController.view.frame = self.view.bounds
4040
flutterViewController.view.autoresizingMask = [.width, .height]
41+
42+
// Since Flutter 3.7.0 the FlutterViewController's background is black by default and therefore needs to be set to clear.
43+
flutterViewController.backgroundColor = .clear
44+
4145
self.view.addSubview(flutterViewController.view)
4246
}
4347

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: macos_window_utils
22
description:
33
macos_window_utils is a Flutter package that provides a set of methods for
44
modifying the NSWindow of a Flutter application on macOS.
5-
version: 1.0.1
5+
version: 1.0.2
66
repository: https://github.com/Adrian-Samoticha/macos_window_utils.dart
77

88
environment:
99
sdk: '>=2.18.5 <3.0.0'
10-
flutter: ">=1.20.0"
10+
flutter: ">=3.7.0"
1111

1212
dependencies:
1313
flutter:

0 commit comments

Comments
 (0)