iphone_duo_ui_pro
1.0.0, released 4 weeks ago by szymondziedzic.com
Fold-aware Flutter widgets and layouts for iPhone Duo devices.
What it does
Provides a native bridge to detect device folds, hinges, and size classes on iPhone Duo. Includes fold-aware two-pane layouts, adaptive scaffolds, and aligned grids to handle dual-screen device layouts.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building Flutter applications targeting the iPhone Duo
- Implementing fold-aware split-pane views or hinge-aligned grids
Skip it when
- Building apps that do not target foldable iOS devices
Strengths
- Fills the gap where MediaQuery display features stay empty on iOS
- Supports both custom Flutter-drawn bars and official UIKit Liquid Glass via a companion package
- Gracefully falls back on standard devices and platforms
Weaknesses
- Targeted specifically at a single emerging device form factor
- Requires iOS 15+ and the UIScene life cycle
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires wrapping the app root with DuoScope and DuoDisplayFeatures.
MaterialApp(
builder: (context, child) => DuoScope(
child: DuoDisplayFeatures(child: child ?? const SizedBox.shrink()),
),
home: const HomeScreen(),
);Alternatives
Packages that do the same job and could replace iphone_duo_ui_pro.
- custom_adaptive_scaffold
Drop-in adaptive Material 3 scaffolding and responsive layout widgets for Flutter apps.
76Compare - duo_kit
Flutter widgets to layout content around a foldable device’s hinge and strip
78Compare - veneer
Real native iOS UI elements driven by Flutter layout, with matching Flutter UI on Android.
66Compare - adaptive_platform_ui
Adaptive platform-specific widgets for Flutter. Auto renders native iOS 26+ liquid glass designs, traditional Cupertino widgets for older iOS versions, Material Design for Android.
81Compare