Repository navigation
Closed
flutter/packages
#12530Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms betterhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Steps to reproduce
- Create a set of pages, using a distinct color for the home page, such as blue.
- Use showCupertinoSheet for routing between pages.
- When routing to the 3rd-level page, observe the top area of the screen to check if the home page is exposed.
Expected results
The home page remains hidden.
Actual results
The blue color of the home page is clearly visible, and the display state of the 2nd-level page is incorrect.
Code sample
Code sample
import 'package:flutter/cupertino.dart';
void main() {
runApp(const SystemCupertinoSheetDemoApp());
}
class SystemCupertinoSheetDemoApp extends StatelessWidget {
const SystemCupertinoSheetDemoApp({super.key});
@override
Widget build(BuildContext context) {
return const CupertinoApp(
home: _DemoHomePage(),
);
}
}
class _DemoHomePage extends StatelessWidget {
const _DemoHomePage();
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
child: ColoredBox(
color: const Color(0xff006edb),
child: Center(
child: CupertinoButton.filled(
onPressed: () => _showSystemSheet(context, level: 2),
child: const Text('Open Sheet 2'),
),
),
),
);
}
}
void _showSystemSheet(BuildContext context, {required int level}) {
showCupertinoSheet<void>(
context: context,
scrollableBuilder:
(BuildContext context, ScrollController scrollController) {
return _SystemSheetPage(level: level);
},
);
}
class _SystemSheetPage extends StatelessWidget {
const _SystemSheetPage({required this.level});
final int level;
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
child: Center(
child: CupertinoButton.filled(
onPressed: level >= 4
? () => Navigator.of(context, rootNavigator: true).pop()
: () => _showSystemSheet(context, level: level + 1),
child: Text(level >= 4 ? 'Close Sheet 4' : 'Open Sheet ${level + 1}'),
),
),
);
}
}
Screenshots or Video
Screenshots / Video demonstration
2026-05-25.22.32.33.mov
Logs
--
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.44.0, on macOS 26.5 25F71 darwin-arm64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.5)
[✓] Chrome - develop for the web
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!Reacted by art-sparrow
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms betterhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Activity
mbcorona commentedon May 26, 2026
HI @huahua8893 , thanks for the detailed report, including code sample and video evidence. Routing to team-design to evaluate, note PR linked#187058
[cupertino_ui] Fix covered sheet revealing root route through top gap (…
[cupertino_ui] Fix covered sheet revealing root route through top gap (…
[cupertino_ui] Fix covered sheet revealing root route through top gap (…
github-actions commentedon Sep 8, 2026
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 -vand a minimal reproduction of the issue.