Member-only story

Fritz AI in Flutter Applications

Add Fritz Vision in Flutter Applications

Derrick Mwiti
6 min readDec 21, 2020

In order to work with Fritz AI in Flutter, you’ll need some knowledge on how to write native Java/Kotlin code in Flutter. At the moment, there is no native plugin for working with Fritz AI in Flutter, however, since Flutter allows one to write native code, Fritz AI can still be integrated into Flutter. Let’s look at how the image labeling* API from Fritz can be integrated.

*Note: Flutter also allows you to write other kinds of native code (Obj-C, Swift), but for the purposes of this tutorial, we’ll focus on Java

Getting Started

The first step is to jump into your favorite editor and create a project. The default language for Android in Flutter applications is Kotlin. You can change that by declaring Java explicitly on the terminal as you create your project.

flutter create -i objc -a java native_code

Once you do, copy the application ID. This can be found in your app’s build.gradle file. It will look something like this:

--

--

No responses yet