When a Flutter view is embedded into an Android app, how to build in release mode?

370 Views Asked by At

One can add a Flutter view to an Android app using the instructions here: https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps

When I build the APK, is the Flutter view in debug mode or release mode? I think it's in debug mode because I see the debug banner (top right corner). How do I switch to release mode?

I'm asking because I see that a bunch of frames are being skipped, and am wondering if these frames are being skipped in release mode too. I'm running on an actual device, not an emulator.

0

There are 0 best solutions below