1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

provider_shopper: update android and ios, add macos and web (#236)

This commit is contained in:
Brett Morgan
2020-01-17 06:09:33 +10:00
committed by GitHub
parent 13125bc435
commit 738861ffe3
47 changed files with 1384 additions and 42 deletions

View File

@@ -0,0 +1,15 @@
import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}