roomplan_flutter 0.0.6
roomplan_flutter: ^0.0.6 copied to clipboard
A Flutter plugin for iOS that provides access to Apple's RoomPlan API, allowing you to easily scan an interior room and receive a 3D model with detailed measurements.
0.0.6 #
- Feature: Enhanced LiDAR detection with multi-method approach for better accuracy across different iOS devices and development environments.
- Feature: Added support for iPhone 16 Pro and Pro Max models in LiDAR device detection.
- Fix: Added missing
CapturedRoom.Surface.Categoryextension mapping for proper surface categorization (doors, windows, openings, walls). - Fix: Corrected height mapping for doors and windows - now uses the correct Y component instead of Z component for opening height calculations.
- Fix: Resolved Swift compilation errors related to device identifier parsing using proper
String(cString:)method. - Chore: Removed debug logging from both native iOS and Flutter code for cleaner production builds.
0.0.5 #
- Feature: Added
floorandceilingproperties toRoomDatato provide direct access to these surfaces when available. - Feature: Added
transform(Matrix4) anddimensions(RoomDimensions) properties toWallData,ObjectData, andOpeningData. This provides more precise positioning and sizing data aligned with the latest native APIs. - Fix: The example app now includes a
PaintAreaDetailsViewto demonstrate calculating the paintable area of walls, subtracting openings.
0.0.4 #
- Feature: Added support for detecting
openings. TheRoomDatamodel now includes a list ofOpeningData. - Fix: Implemented full data parsing for
WallDataandOpeningData, which now correctly deserializedimensionsandconfidencefrom the native payload. - Fix: Resolved a critical threading issue in the native iOS code that caused crashes when sending updates to Flutter. Work is now correctly dispatched between background and main threads.
- Fix: Corrected a native serialization error by implementing a custom
RoomPlanJSONConverterto handle theCapturedRoomobject, which is not directlyEncodable. - Chore(example): Refactored the example app's UI for better clarity and organization, separating views into individual widgets.
- Chore(example): Added visual feedback in the example app to show the
confidencelevel of scanned items using colors.
0.0.3 #
- Docs: Improved package description for better clarity on pub.flutter-io.cn.
- Fix: Corrected exception handling for scan cancellation.
- Refactor: Simplified the internal JSON mapper for robustness.
- Chore(example): Updated the example application and its dependencies.
- Test: Overhauled the test suite, adding isolated tests for the mapper and simplifying plugin-level tests.
0.0.2 #
- BREAKING: Refactored
RoomPlanScannerAPI for clarity and correctness.finishScanning()has been removed.startScanning()now returns aFuture<ScanResult?>which completes with the final scan result.- A new
stopScanning()method was added to programmatically stop the session. - The
onScanResultstream now correctly emitsScanResultobjects during the scan.
- Fixed a bug where the internal data model was incorrectly exposed.
0.0.1 #
- Initial release of the
roomplan_flutterpackage. - Support for starting and stopping a RoomPlan scan on iOS 16+.
- Provides real-time updates on room structure during a scan (
onRoomUpdate,onWallDetected, etc.). - Returns a detailed
ScanResultwith structured data for walls, doors, windows, and overall dimensions.