All posts
31 October 2026·12 min read

Getting a Flutter App Ready for iPhone Duo

What Apple's first foldable means for existing apps: the code changes, the Flutter-specific gaps, how to test every pose, and the App Store requirements coming in April 2027.

#flutter#ios#iphone-duo#foldables#mobile

Apple's first foldable, the iPhone Duo, went on sale on October 23. It has a 5.4-inch outer display and a 7.6-inch inner display, and it can be used closed, fully open, half-folded, or propped up on a desk. iPhone also gets Split View for the first time, so your app can end up running in half of the inner display, next to another app.

For years, most of us could get away with a quiet assumption: an iPhone screen is tall, narrow, and roughly the same shape on every model. That assumption is now gone. Your app can be resized while it's running, in the middle of a task, whenever someone opens or closes their phone.

Apple's apps and apps built with standard SwiftUI and UIKit components adapt mostly on their own. Flutter apps are in a different position: Flutter draws its own UI, so it doesn't get those system adaptations for free, and some of the information you need about the fold isn't available in Flutter on iOS yet.

This post covers what I'd look at when preparing an existing Flutter app: what Apple actually requires, what to change in the code, where Flutter has gaps today, and how to test it.


What Apple Requires, and When

There's a lot of confusing reporting about this, so it helps to separate the actual rules from the recommendations.

SDK your app is built withWhat happens on iPhone Duo
iOS 26 SDK or earlierThe app runs, but doesn't adapt to all layouts
iOS 27 SDKThe app resizes dynamically and fills more of the inner display
iOS 27.1 SDK or laterFully optimized, with toolbars and tab bars shown vertically when the phone is folded

And the dates that matter:

  • From April 2027, apps uploaded to App Store Connect must be built with the iOS 27 SDK or later. That's the usual yearly SDK rule, but this year it has a side effect: once you build with the iOS 27 SDK, your app will be resized on iPhone Duo. There's no keeping the old compatibility presentation.
  • From April 2027, iPhone Duo screenshots become required. Apple's sources don't fully agree on the scope here. The developer news post from October 5 says all submitted apps will need them, while the screenshot specifications page ties the requirement to apps built with the iOS 27.1 SDK or later. Either way, plan for it.
  • Screenshots are 1398 × 2034 pixels for the outer display and 2007 × 2853 pixels for the inner display (portrait).
  • Submitting iPhone Duo screenshots gets your app a "Made for iPhone Duo" badge on its App Store product page.

There's no separate deadline for "supporting" iPhone Duo. But in practice, once April 2027 comes and every update is built with the iOS 27 SDK, your app is going to be resized on a foldable whether you've prepared for it or not. If a screen is broken or can't be used there, I'd expect App Review to treat it the same way it treats an iPhone app that's broken on iPad.


Step 1: Update Your Toolchain and Native Shell

Before touching any Dart code, the iOS side of a Flutter project needs some attention:

  • Xcode 27.1 is what includes the iOS 27.1 SDK and the iPhone Duo simulator.
  • Flutter 3.47.0 added support for Xcode's new Device Hub simulators. Older Flutter versions may not list the simulators on Xcode 27, so upgrade first.
  • Adopt the UIScene life cycle. Apps built with the iOS 27 SDK must use scenes. Flutter 3.41 and later migrates an unmodified AppDelegate automatically. If you've customised yours, your AppDelegate needs to conform to FlutterImplicitEngineDelegate, with plugin registration moved into didInitializeImplicitFlutterEngine.
  • Your Info.plist needs a scene manifest that uses Flutter's scene delegate:
<key>UIApplicationSceneManifest</key>
<dict>
  <key>UIApplicationSupportsMultipleScenes</key>
  <false/>
  <key>UISceneConfigurations</key>
  <dict>
    <key>UIWindowSceneSessionRoleApplication</key>
    <array>
      <dict>
        <key>UISceneConfigurationName</key>
        <string>Default Configuration</string>
        <key>UISceneDelegateClassName</key>
        <string>FlutterSceneDelegate</string>
      </dict>
    </array>
  </dict>
</dict>
  • Check your plugins. Plugins that do native UI work need to support the scene life cycle too. Anything abandoned that still reads UIScreen.main.bounds is likely to misbehave when the window resizes.

Setting UIRequiresFullScreen won't save you, either. iPhone Duo respects it, but your app still resizes when the device opens, closes, or enters Split View.


Step 2: Stop Assuming the Screen Size

Apple's own preparation guide for iPhone Duo is mostly a list of assumptions to remove from native code: sizing from the main screen, making layout decisions from orientation, and treating a regular size class as "this must be an iPad". The same habits exist in Flutter code, just with different names.

A quick audit of a Flutter codebase:

# Layout decisions based on orientation
grep -rn "orientation" lib/

# Insets that assume the left and right edges are the same
grep -rn "EdgeInsets.symmetric" lib/

# Native code reading the main screen instead of the window
grep -rn "UIScreen.main" ios/

Things to look out for:

PatternWhy it breaks on iPhone DuoWhat to use instead
MediaQuery.orientationOf(context) to pick a layoutThe outer display is wider and shorter than a normal iPhone, and Split View gives you a narrow window on a wide screenWidth breakpoints with LayoutBuilder or MediaQuery.sizeOf(context)
Reading the size once in initStateThe size changes while the screen is openRead it in build, so Flutter rebuilds when it changes
Platform.isIOS meaning "phone layout"An iPhone can now be as wide as a small tabletAvailable width
Hard-coded heights for headers or imagesThe aspect ratio is different from every other iPhoneFlexible layouts and BoxFit chosen by available space
EdgeInsets.symmetric around the whole screenWhen folded, toolbars can sit along one side, so insets aren't equalSafeArea, which applies each inset separately

The rule I follow is simple: design for the space you've been given, not for the device you think you're on.


Step 3: Make Good Use of the Big Screen

Once nothing breaks, the next step is making the inner display worth opening. Apple's design guidance uses Mail as the example. Closed, you see either the message list or a message. Open, you see both side by side. The features don't change, only how much fits on screen.

In Flutter, a two-pane layout with a width breakpoint gets you most of the way:

class AdaptiveListDetail extends StatelessWidget {
  const AdaptiveListDetail({
    super.key,
    required this.list,
    required this.detail,
    required this.showDetail,
  });

  final Widget list;
  final Widget detail;
  final bool showDetail;

  static const double twoPaneBreakpoint = 600;

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: (context, constraints) {
        // Narrow: outer display, or half of the screen in Split View
        if (constraints.maxWidth < twoPaneBreakpoint) {
          return showDetail ? detail : list;
        }

        // Wide: inner display, list and detail side by side
        return Row(
          children: [
            SizedBox(width: 360, child: list),
            const VerticalDivider(width: 1),
            Expanded(child: detail),
          ],
        );
      },
    );
  }
}

Notice there's no device check anywhere. The same widget works on the outer display, the inner display, an iPad, Split View, and the next phone Apple releases.


Step 4: Keep the User's Place When They Unfold

This is the requirement that's easiest to miss. Apple's guidance is clear that unfolding the phone shouldn't change what the user was doing. The open screen, selected item, scroll position and anything they've typed should all still be there.

In Flutter, this goes wrong when a layout change rebuilds a different widget tree and throws state away. A few things help:

  • Keep important state above the layout switch. In the example above, showDetail and the selected item should live in your state management, not inside the list widget, so they survive switching between one and two panes.
  • Give widgets that move between layouts a GlobalKey, so Flutter keeps their state when they move to a different place in the tree.
  • Use PageStorageKey on scrollable lists, so scroll position survives a rebuild.
  • Keep text in a controller that lives outside the layout switch. A user halfway through typing shouldn't lose their text because they opened their phone.

If a user has a message open on the outer display and unfolds the phone, they should see the same message, now with the list beside it. They shouldn't land back on the list.


Step 5: Where Flutter Has Gaps Today

This is the part where Flutter developers need to be careful.

On Android foldables, Flutter tells you where the hinge is through MediaQuery.displayFeaturesOf(context). On iOS, that list is always empty, including on iPhone Duo. There's an open proposal to fill it in for iPhone Duo (flutter/flutter#192515), but at the time of writing it hasn't been implemented.

That means a Flutter app on iOS currently can't see, out of the box:

  • the position of the fold,
  • whether the phone is half-folded,
  • the hinge angle.

Two practical consequences:

  • Buttons can end up on the fold. System alerts and menus move their buttons away from the fold automatically. Flutter draws its own dialogs and bottom sheets, so it doesn't get that adjustment. When the phone is half-folded, check that no important button sits right on the crease.
  • Dialogs may measure the wrong size. There's an open issue where MediaQuery.sizeOf inside a dialog limited to one half of a foldable reports the whole screen (flutter/flutter#192667).

If your app really needs the fold, for example a camera or video app that shows controls on the bottom half while the phone is half-folded, you have two options:

  1. A small platform channel of your own. Apple's iOS 27.1 SDK includes a new hinge API that reports the posture and angle. You can listen to it in Swift and send updates to Dart through an EventChannel:
enum FoldPosture { closed, halfOpen, open, unknown }

class FoldStatus {
  static const _channel = EventChannel('app/fold_status');

  static Stream<FoldPosture> get posture => _channel
      .receiveBroadcastStream()
      .map((event) => switch (event) {
            'closed' => FoldPosture.closed,
            'halfOpen' => FoldPosture.halfOpen,
            'open' => FoldPosture.open,
            _ => FoldPosture.unknown,
          })
      .distinct();
}

Make decisions on the posture rather than the exact angle, and throttle updates on the native side so you're not rebuilding on every degree of movement.

  1. A community package. Several packages on pub.dev already bridge the fold and hinge information to Dart. They're very new, and most say they've only been tested on the simulator, so treat them as experimental and read the native code before shipping one in a production app.

One warning if you build your own: don't feed custom hinge data into Flutter's displayFeatures. Flutter's DisplayFeatureSubScreen will then squeeze dialogs and bottom sheets into one half of the screen, which is rarely what you want. Keep the fold information in your own inherited widget or state object instead.

For most apps, though, you don't need the hinge at all. Getting the layout to adapt to width, and keeping state when it changes, covers the vast majority of the work.


Step 6: Test Every Pose

Widget tests for layout

The cheapest place to catch layout problems is in widget tests, by pumping a screen at different sizes:

void main() {
  const sizes = {
    'outer display': Size(466, 678),
    'inner display': Size(669, 951),
    'split view (half of inner display)': Size(334, 951),
  };

  for (final entry in sizes.entries) {
    testWidgets('inbox layout works on ${entry.key}', (tester) async {
      tester.view.devicePixelRatio = 3.0;
      tester.view.physicalSize = entry.value * 3.0;
      addTearDown(tester.view.reset);

      await tester.pumpWidget(const MaterialApp(home: InboxScreen()));

      // Any RenderFlex overflow fails the test automatically.
      final isWide = entry.value.width >= 600;
      expect(find.byType(MessageList), findsOneWidget);
      expect(find.byType(MessageDetail), isWide ? findsOneWidget : findsNothing);
    });
  }
}

These sizes are the screenshot resolutions divided by 3, which is close enough for layout tests. Combine them with the large-text checks from my post on accessibility testing in Flutter. Large text on the narrow outer display is a good place to look for overflows.

It's also worth a test that switches sizes during the test, for example from the outer display to the inner display after selecting an item, and checks that the selected item is still showing.

The simulator

Unit tests won't tell you how it feels, so I also go through the main flows by hand:

  • The iPhone Duo simulator in Xcode 27.1 lets you open, close, fold and rotate the device. Apple says it's the best way to test the full experience.
  • Device Hub's resizable simulator is good for dragging the window to extreme sizes and catching layouts that only break at odd widths.
  • iPhone Mirroring on macOS 27 lets you resize your app on a real iPhone the same way.

What I check on each important screen:

  • Open and close the phone in the middle of a task. Is the user still in the same place, with the same data?
  • Half-fold the phone. Is any button sitting on the crease?
  • Open the app in Split View at both sizes. Does it still work at half width?
  • Try the largest text size on the outer display.
  • Rotate on both displays.
  • Run VoiceOver once on the inner display. Is the reading order across two panes still sensible?

And for the App Store: take screenshots from the app actually running on iPhone Duo or the simulator. App Store Connect also has a new preview tool for checking how your screenshots and product page look on iPhone Duo.


A Practical Checklist

CheckHow
Toolchain is readyXcode 27.1, Flutter 3.47 or later
App uses the scene life cycleUIApplicationSceneManifest with FlutterSceneDelegate
No orientation-based layoutsgrep -rn "orientation" lib/, switch to width breakpoints
No sizing from the main screen in native codegrep -rn "UIScreen.main" ios/
Big screen is used wellTwo panes or extra columns above a width breakpoint
State survives folding and unfoldingState above the layout switch, GlobalKey, PageStorageKey
Nothing important sits on the foldCheck dialogs and sheets while half-folded
Layouts tested at every sizeWidget tests at outer, inner and Split View sizes
Real poses testediPhone Duo simulator in Xcode 27.1
App Store assets readyiPhone Duo screenshots before April 2027

Wrapping Up

iPhone Duo isn't really asking for a new kind of app. It's asking us to stop assuming every iPhone is the same shape. Apps that already pick layouts by available space, keep their state in the right place, and respect safe areas will mostly just work, and the inner display gives them room to show more.

For Flutter developers, the core work is the same as for native developers: width breakpoints, adaptive layouts, and keeping state when the size changes. Flutter's fold and hinge support on iOS will come, but you don't need to wait for it. Most apps never need the hinge.

My advice is to start with one screen. Pick your app's main list-and-detail flow, make it work on the outer display, the inner display and in Split View, and add a widget test for each size. Then work through the rest of the app before April 2027 arrives.


Thanks for reading! If you're preparing your own app for iPhone Duo, I'd love to hear what's broken and what's surprised you.


Sources

Written by

Niluka Bandara

Lead Mobile Developer in Stockholm, building Flutter apps for fintech and payments.