flutter/packages
Mouad Debbar d5751be500
High contrast color scheme based on system forced colors (#165068)
This PR introduces a `bool useSystemColors` parameter to the `ThemeData`
constructor.

The goal from this PR is to enable users to easily create high contrast
themes that are based on system colors for their `MaterialApp`:

```dart
MaterialApp(
  theme: ThemeData.light(),
  darkTheme: ThemeData.dark(),
  highContrastTheme: ThemeData(useSystemColors: true, ...),
  highContrastDarkTheme: ThemeData(useSystemColors: true, ...),
)
```
The `MaterialApp` widget will automatically pick the correct one of the
4 themes based on system settings (light/dark mode, high contrast
enabled/disabled).

Depends on https://github.com/flutter/flutter/pull/164933
Closes https://github.com/flutter/flutter/issues/118853
2025-03-26 19:25:07 +00:00
..
flutter High contrast color scheme based on system forced colors (#165068) 2025-03-26 19:25:07 +00:00
flutter_driver Roll pub packages (#164316) 2025-02-27 19:38:00 +00:00
flutter_goldens Roll pub packages (#163083) 2025-02-11 23:47:59 +00:00
flutter_localizations Remove redundant useMaterial3: true (#163376) 2025-03-14 17:50:20 +00:00
flutter_test Make realAsyncZone run microtasks and timers in the correct zone. (#162731) 2025-03-26 17:14:04 +00:00
flutter_tools [ Hot Restart ] Fix possible hang due to unhandled exception in UI isolates on hot restart (#165693) 2025-03-26 16:50:07 +00:00
flutter_web_plugins Roll pub packages (#163083) 2025-02-11 23:47:59 +00:00
fuchsia_remote_debug_protocol Roll pub packages (#164316) 2025-02-27 19:38:00 +00:00
integration_test Update Java Versions to 21 on CI (#165210) 2025-03-24 22:43:22 +00:00
analysis_options.yaml Update old wiki links (#149544) 2024-06-17 17:26:08 +00:00