Repository navigation
[Regression] [Android] Failed to swtich SystemUIMode from immersiveSticky to edgeToEdge in Flutter 3.44.0 #186723
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.41Found to occur in 3.41Found to occur in 3.41found in release: 3.44Found to occur in 3.44Found to occur in 3.44has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Steps to reproduce
- Call
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky) - Call
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge)
Expected results
SystemBar shows when calling SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge)
Actual results
SystemBar is still hidden when calling SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge)
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(const MaterialApp(home: DemoPage()));
}
class DemoPage extends StatelessWidget {
const DemoPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Demo')),
body: Center(
child: Column(
spacing: 20,
mainAxisSize: .min,
children: [
FilledButton.tonal(
onPressed: () {
SystemChrome.setEnabledSystemUIMode(.immersiveSticky);
},
child: const Text('immersiveSticky'),
),
FilledButton.tonal(
onPressed: () {
SystemChrome.setEnabledSystemUIMode(.edgeToEdge);
},
child: const Text('edgeToEdge'),
),
],
),
),
);
}
}Screenshots or Video
Logs
Logs
no error logFlutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.44.0, on Microsoft Windows [版本 10.0.26200.8457], locale zh-CN)
[✓] Windows Version (Windows 11 or higher, 25H2, 2009)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
.\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.2.1)
[✓] Connected device (2 available)
[✓] Network resourcesReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.41Found to occur in 3.41Found to occur in 3.41found in release: 3.44Found to occur in 3.44Found to occur in 3.44has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team


Activity
bggRGjQaUbCoE commentedon May 19, 2026
Related PR #183072
Could you please take a look, Thanks. @dbebawy
mbcorona commentedon May 19, 2026
Hi @bggRGjQaUbCoE
Thanks for the report and the bisect against #183072.
Confirmed as a regression: the bug does not reproduce on Flutter 3.41.9 (switching from immersiveSticky back to edgeToEdge correctly restores the system bars) but does reproduce on 3.44
Routing to team-android
gmackall commentedon May 19, 2026
cc @reidbaker @mboetger
anders-au commentedon May 21, 2026
As a workaround, I've found you can restore edge-to-edge like this:
SystemChrome.setEnabledSystemUIMode( SystemUiMode.manual, overlays: SystemUiOverlay.values, ),fix: 撤回上游自定义 MethodChannel 临时方案,改用 Flutter issue 中建议的 workaround
11 remaining items
justbetterApps commentedon Jun 1, 2026
Do i have to upgrade to master for the fix ?
[Android] Add integration test for SystemUiMode transitions
[Android] Add integration test for SystemUiMode transitions
camsim99 commentedon Jun 2, 2026
https://github.com/flutter/flutter/blob/master/docs/releases/Where's-my-commit.md explains how to find where the commit is. TLDR: yes for now, but working on cherry-picking to beta and stable!
[CP-stable][Android] Reset system UI visibility flags when setting ed…
MSOB7YY commentedon Jun 8, 2026
@camsim99 hello, thanks for ur work! any eta yet? i see the commit has a tag
flutter-3.44-candidate.0, is this master or a version i can use?[CP-beta][Android] Reset system UI visibility flags when setting edge…
[Android] Add integration test for SystemUiMode transitions
[Android] Add integration test for SystemUiMode transitions
[Android] Add integration test for SystemUiMode transitions (flutter#…
[Android] Reset system UI visibility flags when setting edge-to-edge …
[Android] Add integration test for SystemUiMode transitions (flutter#…
github-actions commentedon Jul 14, 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.