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

Adding dynamic_theme and gemini_tasks (#2287)

Adds two new samples that use the Google Generative AI SDK for Dart.
Both were created by @rodydavis. I'm merely the uploader so to speak.

## Pre-launch Checklist

- [X] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [X] I signed the [CLA].
- [X] I read the [Contributors Guide].
- [X] I updated/added relevant documentation (doc comments with `///`).
- [X] All existing and new tests are passing.
This commit is contained in:
Andrew Brogdon
2024-05-13 08:36:15 -07:00
committed by GitHub
parent 2e0c1ad03a
commit 71fef7c869
265 changed files with 10785 additions and 0 deletions

View File

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