ar_quick_look 0.1.0
ar_quick_look: ^0.1.0 copied to clipboard
Show a USDZ or Reality file in Apple's AR Quick Look, placed in the room through the camera. iOS, with the system viewer rather than a rebuilt one.
0.1.0 #
Initial release: Apple's AR Quick Look for Flutter.
ArQuickLook.presentshows a USDZ or Reality file in the system viewer, and completes when the user closes it rather than when it opens.canPreviewasks Quick Look whether it will actually read a file, so a wrong-format file with the right extension is refused before a viewer is put on screen.presentAssetcopies a bundled asset out to a real file first, because Quick Look needs a path and a Flutter asset is not one. The copy is cached;materializeAssetis public for anything else that needs a path.allowsContentScaling: falsefor models whose size is the point, andcanonicalWebPagefor where Quick Look's Share button should lead.presentAllfor several models the user can page between.- Errors are a sealed hierarchy, never a bare
PlatformException.
Pairs with roomplan: the USDZ it exports
goes straight into present.
Verified on a Simulator — registration, support, and every error path,
including a text file renamed .usdz being refused. The AR camera experience
itself needs a real device.