renderWidget static method
Future<Uint8List?>
renderWidget(
- Widget widget, {
- Size size = const Size(320, 200),
- double pixelRatio = 3,
- 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);