viewProduct static method

Future<void> viewProduct({
  1. required UArSource source,
  2. UArSource? iosSource,
  3. String? title,
  4. List<UArHotspot> hotspots = const <UArHotspot>[],
  5. UArLabels labels = const UArLabels(),
})

A full-screen 3D product viewer with a "View in AR" button.

Implementation

static Future<void> viewProduct({required UArSource source, UArSource? iosSource, String? title, List<UArHotspot> hotspots = const <UArHotspot>[], UArLabels labels = const UArLabels()}) =>
    UNavigator.push<void>(
      Scaffold(
        appBar: AppBar(title: title == null ? null : UTextTitleMedium(title)),
        body: U3DViewer(source: source, iosSource: iosSource, title: title, hotspots: hotspots, labels: labels),
      ),
    );