renderWidget static method

Future<Uint8List?> renderWidget(
  1. Widget widget, {
  2. Size size = const Size(320, 200),
  3. double pixelRatio = 3,
  4. BuildContext? context,
})

Renders a Flutter widget to PNG bytes (for labels/cards placed in AR).

Implementation

static Future<Uint8List?> renderWidget(Widget widget, {Size size = const Size(320, 200), double pixelRatio = 3, BuildContext? context}) =>
    UArWidgetRenderer.render(widget, size: size, pixelRatio: pixelRatio, context: context);