Skip to content
Open-source Flutter package · fold_kit 1.0.0

One foldable API for every device

iPhone Duo and Android folds, hinge angle, two panes split at the hinge and iPhone Duo-style bars — with the same code on phones, tablets, web and desktop. Try every foldable in the live demo below.

Features

  • iPhone Duo supportThe fold and posture on iOS 27.1, which Flutter does not report yet — the same displayFeatures as Android.
  • FoldScaffoldApp bar and tabs move into a vertical bar on the right, like system apps on iPhone Duo.
  • FoldTwoPaneTwo panes split exactly at the hinge: book, tabletop, tablet or phone.
  • FoldPreviewRun any screen as iPhone Duo, Galaxy Z Fold or iPad — closed, half open, flat — on any screen and in tests.
  • Hinge angle & FoldAvoidA live hinge angle on iPhone Duo and Android foldables; keep buttons off the hinge.
  • Device catalog & auditCurrent foldables at monsware.com/foldkit/models, and dart run fold_kit:audit to find code that breaks on foldables.

Install

dependencies:
  fold_kit: ^1.0.0
void main() => runApp(const FoldKitScope(child: MyApp()));

FoldScaffold(
  title: const Text('Rides'),
  destinations: tabs,
  body: FoldTwoPane(start: RideList(), end: RideDetail()),
)

Full docs and options on pub.dev. Keywords: Flutter foldable · iPhone Duo · Galaxy Z Fold · Pixel Fold · hinge angle · dual screen · adaptive layout.

Made by Muhammed Şamil Demir

I'm a senior Flutter and iOS developer and the person behind Monsware. I build these packages in the open and use them in production apps. More: all my open-source packages, about me, GitHub.

Need a Flutter or iOS app built, or help with foldables and large screens? I take on a limited number of freelance projects.

Hire the developer behind fold_kit