mirror of
https://github.com/flutter/samples.git
synced 2026-08-24 17:11:14 +00:00
Minor updates for release 3.47 ## 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 have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`). If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md [changelog]: ../CHANGELOG.md --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
Flutter Dynamic Theme Sample
A developer sample demonstrating how to call on-device Flutter APIs based on output from the Gemini API. Allows the user to dynamically change font scale, colors, and other theme properties inside a running app using natural language.
Goals
- Show how to use the Gemini API for a chat session.
- Demonstrate how to use functions calls with the Gemini API.
- Show how to tie responses from Gemini to specific local API calls.
Questions/issues
If you have a general question about any of the techniques you see in the sample, Flutter's open source community is a great place to find answers. You can find links to online and local groups at [https://flutter.dev/community]!
If you run into an issue with the sample itself, please file an issue in the main Flutter repo.