Skip to content

Overlays close immediately after opening on iPadOS 26.1 #177992

@hakonber

Description

@hakonber

Steps to reproduce

  1. Launch the sample app below on an iPad device or simulator running iPadOS 26.1 (update Xcode to v26.1 to get the latest simulators).
  2. Tap the hamburger icon to open the end drawer.
  3. Observe that it closes immediately. Occasionally it will behave correctly and not close by itself.

Expected results

The end drawer should remain open until the user actively dismisses it.

Actual results

On iPadOS 26.1, the end drawer closes by itself just after opening.

On older iPadOS versions, including 26.0, it behaves correctly and stays open until dismissed.

Code sample

Code sample
import 'package:flutter/material.dart';

/// Flutter code sample for [Scaffold.endDrawer].

void main() => runApp(const EndDrawerExampleApp());

class EndDrawerExampleApp extends StatelessWidget {
  const EndDrawerExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(home: EndDrawerExample());
  }
}

class EndDrawerExample extends StatefulWidget {
  const EndDrawerExample({super.key});

  @override
  State<EndDrawerExample> createState() => _EndDrawerExampleState();
}

class _EndDrawerExampleState extends State<EndDrawerExample> {
  final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();

  void _closeEndDrawer() {
    Navigator.of(context).pop();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      key: _scaffoldKey,
      appBar: AppBar(
        title: const Text('Drawer Demo'),
      ),
      body: Center(
        child: Text('iOS 26.1 Drawer bug. Tap the hamburger icon to trigger'),
      ),
      endDrawer: Drawer(
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              const Text('This is the Drawer'),
              ElevatedButton(
                onPressed: _closeEndDrawer,
                child: const Text('Close Drawer'),
              ),
            ],
          ),
        ),
      ),
      // Disable opening the end drawer with a swipe gesture.
      endDrawerEnableOpenDragGesture: false,
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Image

Logs

Logs
Launching lib/main.dart on iPad Air 11-inch (M3) in debug mode...
Running Xcode build...
Xcode build done.                                           11.6s
Syncing files to device iPad Air 11-inch (M3)...                    32ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on iPad Air 11-inch (M3) is available at: http://127.0.0.1:51132/VZCG7b-IIPk=/
The Flutter DevTools debugger and profiler on iPad Air 11-inch (M3) is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:51132/VZCG7b-IIPk=/

Application finished.

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.7, on macOS 15.6.1 24G90 darwin-arm64, locale en-NO)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.105.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: tabletTablets and landscape phonescustomer: crowdAffects or could affect many people, though not necessarily a specific customer.e: OS-version specificAffects only some versions of the relevant operating systeme: device-specificOnly manifests on certain devicesengineflutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.found in release: 3.35Found to occur in 3.35found in release: 3.38Found to occur in 3.38frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamworkaround availableThere is a workaround available to overcome the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions