Overview
The dual_screen package provides Flutter support for foldable and dual-screen devices, enabling developers to build adaptive user interfaces. It includes the TwoPane widget for managing layout across two screens and offers access to hinge angle sensor data, allowing apps to respond dynamically to device folding states. Designed specifically for Android, it helps create seamless experiences on devices like Microsoft's Surface Duo. The package integrates with Flutter’s rendering pipeline to ensure smooth transitions and responsive layouts based on physical device changes.
Use cases
- Building adaptive UIs for foldable devices
- Creating split-screen layouts with TwoPane
- Responding to hinge angle changes
- Optimizing app layout for dual displays
- Developing multi-pane navigation patterns
Key features
- TwoPane widget for dual-screen layouts
- Hinge angle sensor data integration
- Android-specific foldable device support
- Dynamic layout adaptation
- Flutter-native performance
Suitable for
- Developers targeting foldable Android devices
- Apps requiring split-screen or multi-pane UIs
- Teams building for Microsoft Surface Duo
- UI designers focused on adaptive layouts
- Cross-platform apps needing dual-screen logic
Considerations
- Limited to Android platform
- Requires compatible hardware for testing
- May need additional layout logic for edge cases
- Depends on device manufacturer implementation of hinge sensors
- Not applicable for non-foldable devices
