1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-20 05:52:21 +00:00
Files
samples/dynamic_theme
Niaz Sagor 18e6d7579d Upgrade Android Gradle build tools for dynamic_theme (#2799)
This commit updates the Android Gradle configuration:

*   Bumps the Android Gradle Plugin version from 7.3.0 to 8.9.1.
*   Upgrades the Kotlin Android plugin version from 1.7.10 to 2.1.0.
* Updates the Gradle wrapper distribution from version 7.6.3 to 8.11.1.

## 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 `///`).

@ericwindmill

Co-authored-by: Eric Windmill <eric@ericwindmill.com>
2026-04-15 09:31:06 -07:00
..
2026-02-09 13:26:00 -08:00

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.