]> git.cworth.org Git - lmno.games/blob - flempires/macos/Runner/MainFlutterWindow.swift
style: Force some padding at the bottom of the page.
[lmno.games] / flempires / macos / Runner / MainFlutterWindow.swift
1 import Cocoa
2 import FlutterMacOS
3
4 class MainFlutterWindow: NSWindow {
5   override func awakeFromNib() {
6     let flutterViewController = FlutterViewController.init()
7     let windowFrame = self.frame
8     self.contentViewController = flutterViewController
9     self.setFrame(windowFrame, display: true)
10
11     RegisterGeneratedPlugins(registry: flutterViewController)
12
13     super.awakeFromNib()
14   }
15 }