-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#33100Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.13Found to occur in 2.13Found to occur in 2.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
Steps to Reproduce
- Run
flutter create - Add
darkTheme: ThemeData.dark() - Toggle between light and dark system themes (Settings -> Appearance)
Expected results:
Flutter app adapts to the system theme mode.
Actual results:
Flutter app detects the correct theme mode on startup but doesn't change after that.
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: Scaffold(
appBar: AppBar(
title: const Text('Theme'),
),
),
));
}Logs
[✓] Flutter (Channel master, 2.13.0-0.0.pre.393, on Ubuntu Jammy Jellyfish (development branch) 5.15.0-25-generic, locale en_US.UTF-8)
• Flutter version 2.13.0-0.0.pre.393 at /home/jpnurmi/Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 94fefaa49d (6 hours ago), 2022-04-06 17:17:34 +0530
• Engine revision 45bedbe841
• Dart version 2.17.0 (build 2.17.0-266.0.dev)
• DevTools version 2.12.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /home/jpnurmi/Android/Sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = /home/jpnurmi/Android/Sdk
• Java binary at: /home/jpnurmi/Android/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 14.0.0-1ubuntu1
• cmake version 3.22.1
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/jpnurmi/Android/android-studio
• 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 11.0.10+0-b96-7249189)
[✓] VS Code
• VS Code at /snap/code/current
• Flutter extension version 3.38.1
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu Jammy Jellyfish (development branch) 5.15.0-25-generic
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
TahaTesser and Merrit
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.13Found to occur in 2.13Found to occur in 2.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight

