arkit_plugin_puftpalkim
A fork of arkit_plugin
(source) 1.5.0, used by the
PuftPalkim app.
The Dart API is unchanged from upstream arkit_plugin 1.5.0 — see the
upstream README and
API docs for usage.
Why this fork exists
- Gapless video-material looping. The only Dart-facing behavior change is
in the iOS native implementation of
ARKitMaterialProperty.video(...). Upstream builds the video material from a one-shotAVPlayer(viaSKVideoNode(url:)/SKVideoNode(fileNamed:)), which has no native loop — looping it from Dart (remove/re-add the node, or toggle visibility) causes a visible stutter or a black-flash at every restart. This fork builds the video material from anAVQueuePlayerpaired with anAVPlayerLooper, which is Apple's own mechanism for gapless native looping. Looped video materials now loop with no visible seam. - Transparent camera view background (1.6.0).
ARSCNViewis opaque with a blackbackgroundColorby default in upstream. That's visible as a black box behind/around the AR camera video for the brief moment before the AR session starts drawing camera frames (and along any edge where the view doesn't exactly fill its container). This fork setsbackgroundColor = .clear/isOpaque = falseon the view so the Flutter page behind it shows through instead of black.
This is packaged as an independent, renamed pub.flutter-io.cn package (rather than a
dependency_overrides entry) because the consuming project is built with
FlutterFlow, whose dependency model only supports adding a dependency by
pub.flutter-io.cn package name + version — it has no field for a git/path source.
Usage
import 'package:arkit_plugin_puftpalkim/arkit_plugin_puftpalkim.dart';
License
MIT, same as upstream. See LICENSE — original copyright notice preserved
per the MIT license's terms.