Skip to content

[Regression] [Android] Failed to swtich SystemUIMode from immersiveSticky to edgeToEdge in Flutter 3.44.0 #186723

Closed

Description

@bggRGjQaUbCoE

Steps to reproduce

  1. Call SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky)
  2. 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

Screenshots / Video demonstration
Flutter 3.41.9 Flutter 3.44.0
Image Image

Logs

Logs
no error log

Flutter 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 resources

Activity

  1. bggRGjQaUbCoE commented on May 19, 2026

    @bggRGjQaUbCoE
    Author

    Related PR #183072
    Could you please take a look, Thanks. @dbebawy

  2. added
    in triagePresently being triaged by the triage team
    c: regressionIt was better in the past than it is now
    platform-androidAndroid applications specifically
    engineflutter/engine related. See also e: labels.
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    team-androidOwned by Android platform team
    on May 19, 2026
  3. mbcorona commented on May 19, 2026

    @mbcorona
    Member

    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

  4. removed
    in triagePresently being triaged by the triage team
    on May 19, 2026
  5. gmackall commented on May 19, 2026

    @gmackall
    Member
  6. anders-au commented on May 21, 2026

    @anders-au

    As a workaround, I've found you can restore edge-to-edge like this:

    SystemChrome.setEnabledSystemUIMode( SystemUiMode.manual, overlays: SystemUiOverlay.values, ),

  7. added
    P1High-priority issues at the top of the work list
    on May 26, 2026
  8. 11 remaining items

  9. justbetterApps commented on Jun 1, 2026

    @justbetterApps

    Do i have to upgrade to master for the fix ?

  10. camsim99 commented on Jun 2, 2026

    @camsim99
    Contributor

    Do i have to upgrade to master for the fix ?

    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!

  11. MSOB7YY commented on Jun 8, 2026

    @MSOB7YY

    @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?

  12. github-actions commented on Jul 14, 2026

    @github-actions

    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.

  13. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.found in release: 3.41Found to occur in 3.41found in release: 3.44Found to occur in 3.44has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions