Status bar in not visible when CupertinoSheetRoute is open
Steps to reproduce
Push a CupertinoSheetRoute
Expected results
The device status bar should be white so that it's visible
Actual results
The device status bar is black
Code sample
Code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
main() async {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({
super.key,
});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
fontFamily: "CupertinoSystemDisplay",
),
home: const Home(),
);
}
}
class Home extends StatelessWidget {
const Home({
super.key,
});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Cupertino Sheet"),
),
body: SafeArea(
child: Center(
child: FilledButton(
onPressed: () {
showCupertinoSheet(
context: context,
pageBuilder: (context) {
return const Scaffold(
body: Center(
child: Text('Sheet'),
),
);
},
);
},
child: const Text("Open Sheet"),
),
),
),
);
}
}
Screenshots or Video
Screenshots / Video demonstration
https://github.com/user-attachments/assets/1ebe08b4-6167-4eeb-800d-a76bf86a3165
Logs
Logs
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.3.1 24D70 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] IntelliJ IDEA Community Edition (version 2024.3.2.2)
[✓] VS Code (version 1.97.2)
[✓] Connected device (5 available)
[✓] Network resources
I've already opened a similar issues #164633 for Flutter 3.29, now we have opposite problem...that is worst because there is no way to fix it
As developer I expect to not to have to set this information every time I use a CupertinoSheet, because this information can be reset using the current theme in context. It's ok if I have to reset it "manually" because I am the one who changed it "manually". But is this case I didn't, so I expect that everything works correctly without me being aware of this problem
Triage Report
I was able to reproduce the issue using the provided code sample on the stable (3.32.0).
However it is not reproducible on stable (3.29.3) and master (3.33.0-1.0.pre.211) versions.
I'll be closing this as it works in latest master, tagging @MitchellGoodwin for thoughts if this needs to be cherry-picked?!
| 3.29.3 | 3.32.0 | Master |
|---|---|---|
Code Sample (Same as OP)
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
main() async {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({
super.key,
});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
fontFamily: "CupertinoSystemDisplay",
),
home: const Home(),
);
}
}
class Home extends StatelessWidget {
const Home({
super.key,
});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Cupertino Sheet"),
),
body: SafeArea(
child: Center(
child: FilledButton(
onPressed: () {
showCupertinoSheet(
context: context,
pageBuilder: (context) {
return const Scaffold(
body: Center(
child: Text('Sheet'),
),
);
},
);
},
child: const Text("Open Sheet"),
),
),
),
);
}
}
stable (3.29.3) - flutter doctor -v
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.4.1 24E263 darwin-arm64, locale
en-IN) [970ms]
• Flutter version 3.29.3 on channel stable at
/Users/tirthpatel/Development/flutter_stable/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ea121f8859 (4 weeks ago), 2025-04-11 19:10:07 +0000
• Engine revision cf56914b32
• Dart version 3.7.2
• DevTools version 2.42.3
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[855ms]
• Android SDK at /Users/tirthpatel/Library/Android/sdk
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on
this machine.
To manually set the JDK path, use: `flutter config
--jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [556ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.3) [9ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
[✓] VS Code (version 1.99.3) [8ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available) [5.5s]
• macOS (desktop) • macos • darwin-arm64 •
macOS 15.4.1 24E263 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin •
macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript •
Google Chrome 135.0.7049.115
[✓] Network resources [559ms]
• All expected network resources are available.
• No issues found!
stable (3.32.0) - flutter doctor -v
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.4.1 24E263 darwin-arm64, locale en-IN) [446ms]
• Flutter version 3.32.0 on channel stable at /Users/tirthpatel/Development/flutter_stable_latest/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (34 hours ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [827ms]
• Android SDK at /Users/tirthpatel/Library/Android/sdk
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [448ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.3) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
[✓] VS Code (version 1.100.2) [8ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.110.0
[✓] Connected device (2 available) [5.6s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.114
[✓] Network resources [1,624ms]
• All expected network resources are available.
• No issues found!
master (3.33.0-1.0.pre.211) - flutter doctor -v
[✓] Flutter (Channel master, 3.33.0-1.0.pre.211, on macOS 15.4.1 24E263 darwin-arm64, locale en-IN) [2.9s]
• Flutter version 3.33.0-1.0.pre.211 on channel master at /Users/tirthpatel/Development/flutter_master/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 1430fc8e8d (28 hours ago), 2025-05-24 23:59:26 -0400
• Engine revision 1430fc8e8d
• Dart version 3.9.0 (build 3.9.0-169.0.dev)
• DevTools version 2.46.0
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [4.5s]
• Android SDK at /Users/tirthpatel/Library/Android/sdk
• Emulator version 35.4.9.0 (build_id 13025442) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [814ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [8ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.3) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
[✓] VS Code (version 1.100.2) [7ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.110.0
[✓] Connected device (4 available) [5.7s]
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 16 (API 36) (emulator)
• iPhone 16 Plus (mobile) • B19185FD-0093-4E49-B587-16642A3EC7D3 • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.114
[✓] Network resources [430ms]
• All expected network resources are available.
• No issues found!
@GiacomoPignoni apologies on the regression. This status bar behavior has been pretty frustrating. #168182 fully fixes this but, is done in a way that is a bit atypical so I have been waiting to see if any unexpected issues come up from it in other areas. If nothing is reported by next week, I'll start the cherry pick process.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.