I was wondering if anyone knew the most future-proof way to build a flutter snap, as we are torn between the more traditional gnome-3-38-extension or gnome-extension method or the newer graphics-core20/mesa-core20 method as seen in this post.
Both of these options allow us to use the core20 or core22 base for the snap which seems like the right move to make it future proof.
The reason we want it to be future proof is that the snap and ubuntu core image that contains it is going to be deployed on some iot hardware in locations with potentially bad network connectivity and which a full large remodel would potentially be difficult or ideally avoided as much as possible.
A little bit of background.
We are working on a snap which was using the flutter-extension to build the snap and allow it to display the UI via mir-kiosk.
We noticed as we were building the flutter binary outside the snap build process we didnt need the additional flutter tooling that extension provided so moved to the gnome-3-28-extension. However this was still based on core18.
We have tried both methods extension vs the graphics-core20 content snap and both seem to be working fine. We think the extension method makes the snapcraft.yaml look a little more readable by hiding some of the complexity, but the graphics-core20 method seems to suggest we could update the mesa-core20 snap and flutter snap independently.
It would be great to hear your thoughts on which of these is the future direction for UI based snaps for ubuntu core.