안드로이드 및 iOS에서 Flutter 앱에서 증강현실 경험을 구축하기 위해 설계된 AR Flutter 플러그인의 유지보수된 포크입니다. 2022년 이후 원본 플러그인에 업데이트가 없었기 때문에 이 버전은 지속적인 호환성과 기능을 보장하기 위해 만들어졌습니다. 평면 감지 및 3D 객체 배치와 같은 AR 기능을 개선된 신뢰성과 최신 장치 기능 지원과 함께 통합할 수 있게 해줍니다.
사용 사례
AR 제품 미리보기 만들기
상호작용형 AR 교육 도구 만들기
소매 앱에서 가상 체험 기능 활성화
AR 게임 및 경험 개발
주요 기능
활동적인 유지보수 및 업데이트
Android 및 iOS 지원
원래 플러그인보다 안정성 향상
FlutterFlow 워크플로우와의 통합
평면 감지 및 3D 렌더링
적합한 대상
AR 기능이 필요한 Flutter 개발자
앱 개발에 FlutterFlow를 사용하는 팀
최신 AR 지원이 필요한 프로젝트
고려 사항
호환되는 AR 기능을 갖춘 장치가 필요합니다
고급 추적 기능 없이 기본적인 AR 기능만 제공
복잡한 장면의 경우 추가 구성이 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
ar_flutter_plugin_flutterflow
⚠️ Package discontinued
This package is discontinued due to the creation of a new plugin which use Sceneview instead of sceneform for the android part.
The new plugin is called ar_flutter_plugin_2 and can be found here: - Pub.dev : https://pub.dev/packages/ar_flutter_plugin_2 - Github : https://github.com/hlefe/ar_flutter_plugin_2
This version is a direct adaptation of the original ar_flutter_plugin (https://pub.dev/packages/ar_flutter_plugin), maintaining all its powerful features and capabilities.
This fork was created because the original plugin had not been updated since 2022.
➡ Changes include an update to the AR Core endpoint, a gradle upgrade, and compatibility with FlutterFlow.
🚀 I am working on moving away from Sceneform, which has been archived by Google, and instead using Sceneview Android version 2.2.1, which supports the latest versions of ARCore with Google Filament as the 3D engine. This offers support for model animations and many other improvements. You can follow the progress of this development on the sceneview-android branch and in this pull request.
To prevent your application from crashing when launching augmented reality on iOS, you need to add the following permission to the Info.plist file (located under ios/Runner) :
<key>NSCameraUsageDescription</key>
<string>This application requires camera access for augmented reality functionality.</string>
If you're using FlutterFlow, go to "App Settings" > "Permissions"
For the "Camera" line, toggle the switch to "On" and add the description : "This application requires access to the camera to enable augmented reality features."
If you have problems with permissions on iOS (e.g. with the camera view not showing up even though camera access is allowed), add this to the podfile of your app's ios directory:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
# Additional configuration options could already be set here
# BEGINNING OF WHAT YOU SHOULD ADD
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=1',
## dart: PermissionGroup.photos
'PERMISSION_PHOTOS=1',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=1',
## dart: PermissionGroup.sensors
'PERMISSION_SENSORS=1',
## dart: PermissionGroup.bluetooth
'PERMISSION_BLUETOOTH=1',
# add additional permission groups if required
]
# END OF WHAT YOU SHOULD ADD
end
end
end
In FlutterFlow :
Unfortunately, at this stage, it is not possible to carry out the procedure above within FlutterFlow.
Therefore, it is necessary to publish your project with github and make the modifications manually. And then publish wih Github selected in Deployment Sources : FlutterFlow Publish from Github
Example Applications
Example Name
Description
Link to Code
Debug Options
Simple AR scene with toggles to visualize the world origin, feature points and tracked planes
AR scene with buttons to place GLTF objects from the flutter asset folders, GLB objects from the internet, or a GLB object from the app's Documents directory at a given position, rotation and scale. Additional buttons allow to modify scale, position and orientation with regard to the world origin after objects have been placed.
AR Scene in which objects can be placed, uploaded and downloaded, thus creating an interactive AR experience that can be shared between multiple devices. Currently, the example allows to upload the last placed object along with its anchor and download all anchors within a radius of 100m along with all the attached objects (independent of which device originally placed the objects). As sharing the objects is done by using the Google Cloud Anchor Service and Firebase, this requires some additional setup, please read Getting Started with cloud anchors
Similar to the Cloud Anchors example, but contains UI to choose between different models. Rather than being hard-coded, an external database (Firestore) is used to manage the available models. As sharing the objects is done by using the Google Cloud Anchor Service and Firebase, this requires some additional setup, please read Getting Started with cloud anchors. Also make sure that in your Firestore database, the collection "models" contains some entries with the fields "name", "image", and "uri", where "uri" points to the raw file of a model in GLB format