duo_flex 0.4.0
duo_flex: ^0.4.0 copied to clipboard
Flutter plugin for iPhone Duo and foldable devices: read hinge angle, posture, display regions and window geometry, and build adaptive layouts.
0.4.0 #
- Let example metric cards grow with their content to avoid overflow for long orientation values and larger text sizes.
- Make the example Adaptive UI tab easier to explore with live/preview layout choices, visual diagrams, expandable measurements, and plain-language fold explanations.
- Refresh fold capabilities on display changes, seed late fold listeners from snapshots, and recover individual stream errors after valid updates.
- Add book, continuous, and folded layout callbacks and nullable angle clearing.
- Fix Android sensor cleanup, engine-specific view selection, geometry updates, and pre-Android 11 safe-area handling without keyboard insets.
- Complete UIKit snapshot requests with unknown data when the view is inactive or no update arrives within three seconds.
- Replay current UIKit fold readings to new native listeners and refresh reserved regions on layout callbacks even when view dimensions have not changed.
- Normalize Android display regions to the Flutter view and clip fold bounds.
- Add explicit unbounded-axis fallback sizes and local viewport orientation.
0.3.3 #
- Improve pub.dev search metadata and README wording for iPhone Duo and foldable Flutter apps.
0.3.2 #
- Document Samsung Galaxy Z foldable support through AndroidX WindowManager.
0.3.1 #
- Use an optimized JPEG for the pub.dev package screenshot thumbnail.
0.3.0 #
- Add a web implementation for viewport geometry and resize events.
- Read
continuousandfoldedstates from the experimental Device Posture API when the browser supports it. - Keep hinge angle, safe-area measurements, and fold geometry unavailable on web.
0.2.1 #
- Fix README screenshot links so images load on pub.dev.
0.2.0 #
- Add Android support for device, app-window, display-region, and fold data.
- Read Android hinge angle from
Sensor.TYPE_HINGE_ANGLEwhen available, reporting radians and filtering sensor noise while the event stream is active. - Report Android
bookandtabletoppostures from folding-feature orientation. - Add
DuoFoldPosture.bookfor vertical half-open fold configurations. - Keep unavailable Android fold sensors and posture data nullable or unknown.
0.1.2 #
- Add the animated device dashboard to the pub.dev screenshots gallery.
0.1.1 #
- Show the device dashboard in the pub.dev screenshots gallery.
0.1.0 #
- Add typed APIs for iOS device, screen, display, and reserved-region data.
- Expose UIKit hinge angle and posture when the public APIs are available.
- Add screen and display event streams with lifecycle-aware observation.
- Add responsive layout, viewport, and posture-aware widgets.
- Preserve safe unavailable values on unsupported devices and OS versions.
