roomplan_launcher 1.2.1
roomplan_launcher: ^1.2.1 copied to clipboard
A Flutter plugin to launch the native iOS RoomPlan scanner using ARKit. Captures room geometry and returns structured JSON data to Flutter. Requires iOS 16+.
import 'package:flutter/material.dart';
import 'package:roomplan_launcher/roomplan_launcher.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
RoomplanLauncher.onRoomCaptureFinished((resultJson) {
//Do something with the JSON here
print(resultJson);
});
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Plugin example app')),
body: Center(
child: ElevatedButton(onPressed: launchRoomplan, child: Text("Launch RoomPlan")),
),
),
);
}
}