foldable 0.1.0 copy "foldable: ^0.1.0" to clipboard
foldable: ^0.1.0 copied to clipboard

iPhone Duo hinge angle, fold posture and fold/camera regions for Flutter. Apple foldable iPhone support that stays safe on every non-foldable device.

0.1.0 #

First release, published ahead of the iPhone Duo's 23 October 2026 launch.

  • Foldable.isFoldable, hingeAngleStream (degrees), hingeStatusStream, hingeStatus, snapshot, changes and capabilities.
  • HingeStatus: closed / partiallyOpen / fullyOpen / unknown, following Apple's own terminology.
  • FoldableProvider + DuoMediaQuery (an InheritedModel, so the posture and the continuously changing angle rebuild independently) and FoldAwareBuilder.
  • Opt-in MediaQuery.displayFeatures bridging via DisplayFeatureBridgeMode, off by default, with invariants that prevent an accidental layout split. See flutter/flutter#192515.
  • iOS implementation resolves the iOS 27.1 hinge APIs through the Objective-C runtime, so the package compiles on older SDKs at an iOS 13.0 deployment target and no-ops safely on devices without a hinge.
  • Foldable.debugDumpNativeApi() for confirming the real API shape on hardware.

Hinge readings have not been verified against a physical device; FoldableCapabilities.angleUnitVerified reports false until they are.

15
likes
0
points
569
downloads

Publisher

verified publishermedialyra.com

Weekly Downloads

iPhone Duo hinge angle, fold posture and fold/camera regions for Flutter. Apple foldable iPhone support that stays safe on every non-foldable device.

Repository (GitHub)
View/report issues

Topics

#foldable #iphone-duo #ios #responsive #layout

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on foldable

Packages that implement foldable