buildPresenter method

Widget buildPresenter(
  1. BuildContext context
)

Render the editor's viewport — paints all Painter layers plus the optional gestures / overlays on top.

Implementation

Widget buildPresenter(BuildContext context) {
  return Stack(
    fit: StackFit.expand,
    children: [
      ListenableBuilder(
        listenable: this,
        builder: (context, _) => CustomPaint(
          painter:
              _customPainter ?? EditorPainter(scene: this, camera: camera),
        ),
      ),
      ?gestures,
      ...?overlays,
    ],
  );
}