fix: 调整mac和win的初始尺寸,固定初始化尺寸
This commit is contained in:
parent
8e48a6ff8a
commit
d89e8782e6
@ -5,7 +5,8 @@ import window_manager
|
||||
class MainFlutterWindow: NSWindow {
|
||||
override func awakeFromNib() {
|
||||
let flutterViewController = FlutterViewController()
|
||||
let windowFrame = self.frame
|
||||
var windowFrame = self.frame
|
||||
windowFrame.size = NSSize(width: 375, height: 800)
|
||||
self.contentViewController = flutterViewController
|
||||
self.setFrame(windowFrame, display: true)
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
|
||||
|
||||
FlutterWindow window(project);
|
||||
Win32Window::Point origin(10, 10);
|
||||
Win32Window::Size size(1280, 720);
|
||||
Win32Window::Size size(375, 800);
|
||||
if (!window.Create(L"HiFastVPN", origin, size)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user