1 post tagged with "flutter"

View All Tags

Android Studio setup for Flutter plugin

We wanted to run inference on the phone for our neural network for unwrapping. We have an application built with Flutter to provide cross-platform development, and we wanted to integrate with the mobile Pytorch library. We always tried to cut corners everywhere we could. But there were no excellent Flutter plugins that support our neural model on the current Flutter's life stage. Most plugins re-create Pytorch's mobile sample application that is classifying images, but it's required to calculate heatmaps in our case.

Since it’s super easy to call native code in Flutter, it was an idea to write a custom plugin, doing the required calculations.

But many different possible outputs can exist, and we can improve existing Flutter's ecosphere by separating part of an internal application to plugin.

This article is about how to start plugin development using Flutter and Android Studio. Currently, Flutter (1.20.3) and android-studio (3.6/4.0) have some gotchas to work it better than out-of-box.

caution