display_posture_detector 0.0.6
display_posture_detector: ^0.0.6 copied to clipboard
A Flutter plugin to detect display postures, hardware hinge bounds, orientation, screen metrics, and multi-display regions on foldables and tablets.
0.0.6 #
- Migrated UI imports from
package:flutter/material.darttopackage:material_ui/material_ui.dart(material_ui: ^1.11.0). - Updated
AdaptivePostureBuilderand example application to integrate withmaterial_ui. - Synchronized
0.0.6version metadata acrosspubspec.yaml, iOS podspec, andREADME.md.
0.0.5 #
- Added missing
0.0.4release notes toCHANGELOG.mdfor pub.dev score compliance and formatted Dart sources. - Synchronized
0.0.5version metadata acrosspubspec.yaml, iOS podspec, andREADME.md.
0.0.4 #
- Hardware Occlusion & Side-Panel Clearances: Added
occlusionAreas,hasSidePanel,occlusionsIn(...), andsidePanelSafePadding(...)toPostureEventwith native iOS and Android occlusion reporting. - Cached Broadcast Posture Stream: Updated
MethodChannelDisplayPostureDetectorwith a sharedStream.multinative subscription andlatestPosturecache so new listeners andAdaptivePostureBuilderinstances receive the latest posture state immediately. - Dual-Pane Layout Alignment & Tests: Improved side-panel detection logic and expanded unit and method-channel test coverage.
0.0.3 #
- iOS Hinge Interaction Integration: Connected native
UIHingeInteractionandUIHinge.Statuson iOS to accurately detect semi-folded / half-opened postures in vertical Book mode in addition to Tabletop mode. - Adaptive & Responsive System: Added
WindowSizeClass(compact,medium,expanded) and configurablePostureBreakpoints(withstandard768/1024 andmaterial600/840 presets). - Startup Initialization: Added
DisplayPostureDetector.initialize(...)andconfigure(...)for one-time global breakpoint configuration inmain(). - Zero-Overhead Responsive Queries: Added $O(1)$ size queries (
sizeClass(context),isCompact(context),isMedium(context),isExpanded(context),isDesktop(context),isMobile(context), and constraint-based width helpers). - Android Floating & Multi-Window Ready: Native support for Samsung Pop-up view, Android multi-window split, iPad Split View, and desktop window resizing via performant
MediaQuery.sizeOf(context)aspect queries. - Convenience Posture Getters: Added
isTableTop,isBookPosture, andisFlatproperties toPostureEvent. AdaptivePostureBuilderWidget: Added an out-of-the-box adaptive widget that tracks both real-time physical posture and window size classes.- Example & Docs: Updated example application and documentation to demonstrate responsive breakpoint customization, fixed pane header wrapping, and posture-aware layouts.
0.0.2 #
- Performance Optimization: Implemented native event deduplication on iOS (
PostureState) and Android (lastEmittedPayload) to eliminate redundant PlatformChannel serialization and bridge traffic during rapid layout transitions. - Main Thread Coalescing: Added frame-aligned scheduling (
scheduleEmit()) for iOS layout events to prevent UI jank during 120Hz ProMotion animations. - Direct Root View Resolution: Optimized view hierarchy lookups to bypass redundant window scene traversals.
- Dart Equality Support: Implemented
operator ==andhashCodeonPostureEventandDisplayMetricsfor seamless integration with reactive state management and.distinct()stream filtering. - Stage Manager & Split View Refinement: Added width threshold safeguards for tablet landscape multi-panel splitting.
0.0.1 #
- Initial release of
display_posture_detector. - Real-time posture tracking (
FLAT,HALF_OPENED,NORMAL). - Physical hinge and crease bounds detection (
hingeBounds). - Usable display regions (
displayAreas) and side dock/status panel detection (sidePanel). - Full-bleed multi-pane layout support and combined wide canvas (
combinedArea). - Tablet landscape 50% / 50% multi-panel detection for iPads and Android tablets.
- Form factor and platform hardware classification (
DeviceType). - Hardware display metrics (
widthPx,heightPx,density,orientation). - Interactive posture simulation for testing on standard non-foldable devices and simulators.