Flutter measurement magnifier not working on Android

Our measurement tools are equipped with a magnifier that allows you to zoom in on the screen to get more precise measurements. However, this feature currently doesn’t work properly on Android. The magnifier bubble is displayed, but it doesn’t contain the magnified content, as shown in the image below. This is an issue in the Flutter framework and is being tracked in this GitHub issue.

Measurement magnifier not working on Android

Workaround

There’s a workaround someone suggested within the issue that uses the texture render mode in the base Android Activity, as shown below:

import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.RenderMode

class MainActivity : FlutterActivity() {
    override fun getRenderMode(): RenderMode {
        return RenderMode.texture
    }
}

This workaround is a temporary solution until the issue is resolved in the Flutter framework.