FunctionGemma Flutter: On-Device Function Calling Guide

FunctionGemma is Google's function-calling-tuned Gemma 3 270M for mobile: precise on-device tool calls in Flutter via flutter_gemma, zero internet required. Here's the fastest path from install to your first real Dart function call.

Forget the cloud round-trip: functiongemma flutter on-device function calling puts a 270M-parameter, function-calling-tuned model directly in your Flutter app via flutter_gemma. You declare Dart tools, the model emits structured function calls, your app executes them โ€” fully offline, zero API cost, near-instant. The "too small to be useful" takes measure zero-shot benchmarks, not your fixed tool set. ๐ŸŽฌ Watch: Introducing FunctionGemma ๐ŸŽฌ Watch: Introducing FunctionGemma: Mobile Actions on-device demo Kat Black and Ravin Kumar demo the Mobile Actions build โ€” voice commands toggling the flashlight and calendar on-device, plus the natural-language farming game, all running on Google AI Edge. 6:00 โฑ 6:00 ยท Google for Developers โ€” click to play inline, or watch on YouTube . FunctionGemma Flutter On-Device Function Calling: Minimal Working Example FunctionGemma is a specialized build of Gemma 3 270M, tuned for one job: turning natural language into precise function calls on the phone itself. The flutter_gemma plugin ( ^0.12.0 ) runs it through MediaPipe&#x27;s runtime and ships a parser for FunctionGemma&#x27;s special call format, so you work with plain Dart objects. Here is the complete loop: // pubspec.yaml // dependencies: // flutter_gemma: ^0.12.0 import &#x27;package:flutter_gemma/flutter_gemma.dart&#x27;; Future<void> runOnDeviceAgent(String userInput) async { // 1. Install the 288 MB int8 model once (cache it โ€” don&#x27;t bundle it blindly). await FlutterGemma.installModel( modelType: ModelType.functionGemma, // activates the special parser ).fromNetwork( &#x27;https://huggingface.co/sasha-denisov/function-gemma-270M-it/resolve/main/functiongemma-270M-it.task&#x27;, ).install(); // 2. Load it on the GPU backend. final model = await FlutterGemma.getActiveModel(โ€ฆ

Explore