roomplan_launcher
A Flutter plugin to launch the native iOS RoomPlan scanner using ARKit and RoomPlan SDK. This plugin allows you to capture the 3D geometry of a room and returns structured JSON output directly to your Flutter app β perfect for AR-based measurement, interior design, construction, and smart home apps.
β οΈ Requires iOS 16+ and an ARKit-compatible device.
β¨ Features
- Launches native
RoomCaptureViewControllerwith full-screen AR scanning. - Automatically processes results and returns structured
CapturedRoomJSON back to Flutter.
π Getting Started
1. Install the plugin
Add to your pubspec.yaml:
dependencies:
roomplan_launcher: ^1.1.0
2. iOS Setup
Ensure your iOS project meets the following requirements:
-
π± Deployment target: iOS 16.0+
-
π· Camera usage permission: Add the following entry to your
Info.plist:
<key>NSCameraUsageDescription</key>
<string>Room scanning requires camera access</string>
π§ Usage
Use the 'launch' method to invoke the native scanning screen and use the 'onRoomCaptureFinished' callback to get the result.
void initState() {
RoomplanLauncher.onRoomCaptureFinished = (json) {
//Do something with the JSON here
print(json);
};
super.initState();
}
ElevatedButton(onPressed: RoomplanLauncher.launch, child: Text("Launch RoomPlan"))
π Output Format
The returned String is a JSON-encoded representation of Apple's CapturedRoom object.
π§ Example App
Check the example/ directory for a full integration demo.
β Requirements
- iOS 16.0+
- ARKit-compatible device (e.g., iPhone 12+ or recent iPad Pro)
π Credits
Built on top of Appleβs RoomPlan SDK. Plugin maintained by Yashodhan Killekar.