Comments (1)
If you mean the MainFlutterWindow.swift
file, it needs to look like this:
import Cocoa
import FlutterMacOS
import macos_window_utils
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let windowFrame = self.frame
let macOSWindowUtilsViewController = MacOSWindowUtilsViewController()
self.contentViewController = macOSWindowUtilsViewController
self.setFrame(windowFrame, display: true)
/* Initialize the macos_window_utils plugin */
MainFlutterWindowManipulator.start(mainFlutterWindow: self)
RegisterGeneratedPlugins(registry: macOSWindowUtilsViewController.flutterViewController)
super.awakeFromNib()
}
}
from macos_window_utils.dart.
Related Issues (20)
- Add `miniaturize`, `deminiaturize`, `performMiniaturize`, and `isMiniaturized` methods HOT 1
- Add methods to set and get the window's `minSize` and `maxSize` properties
- All window styles doesn't work after upgrading Flutter to 3.7.0 HOT 2
- Expose `NSWindowDelegate` events
- Expose UI Element Colors HOT 1
- Add a method to check whether the plugin has been set up properly in the MainFlutterWindow.swift file. HOT 1
- Fix typo in readme
- `'self' captured by a closure before all members were initialized`
- Flutter 3.10 - Exiting app doesn't work properly HOT 1
- Add query and mutation controls for the traffic light window buttons HOT 11
- Consider moving away from static methods HOT 1
- Consider offering a widget for window configuration HOT 5
- Create a TrafficLightsSafeArea widget HOT 2
- Expose `isMainWindow`.
- Make it possible to center the window on the screen HOT 3
- Avoid visual glitch on launch HOT 5
- Let user's specify a static window size HOT 1
- Flutter view not showing on older MacOS versions HOT 4
- Because both the window_manager plug-in and this plug-in use NSWindowDelegate, there is an incompatibility problem between the two, which will cause all monitoring in window_manager to fail. This problem has been encountered in the macos_ui library. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macos_window_utils.dart.