mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[This PR](https://github.com/flutter/engine/pull/54415) was reverted because it requires a manual roll into the framework. issue: https://github.com/flutter/flutter/issues/127855 integration test: https://github.com/flutter/engine/pull/54415 This does the preliminary work for implementing wide gamut colors in the Flutter framework. Here are the following changes: 1) colors now specify a colorspace with which they are to be interpreted 1) colors now store their components as floats to accommodate bit depths more than 8 The storage of this Color class is weird with float/int storage but that is a temporary solution to support a smooth transition. Here is the plan for landing this: 1) Land this PR 1) Wait for it to roll into the Framework 1) Land https://github.com/flutter/flutter/pull/153938 which will make CupertinoDynamicColor implement Color 1) Land another engine PR that rips out the int storage: https://github.com/flutter/engine/pull/54714 Here are follow up PRs: 1) https://github.com/flutter/engine/pull/54473 - changes DlColor so the wide gamut colors are rendered 1) https://github.com/flutter/engine/pull/54567 - Hooks up these changes to take advantage of wide DlColor 1) https://github.com/flutter/flutter/pull/153319 - the integration test for the framework repo There are some things that have been left as follow up PRs since they are technically breaking: 1) The math on `lerp` hasn't been updated to take advantage of the higher bit depth 1) `operator==` hasn't been updated to take advantage of the higher bit depth 1) `hashCode` hasn't been updated to take advantage of the higher bit depth 1) `alphaBlend` hasn't been updated to take advantage of the higher bit depth 1) `toString` hasn't been updated to take advantage of the higher bit depth
Description
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
androidapp-frameworkcross-platformdartdart-platformdesktopflutterflutter-packagefuchsiaioslinux-desktopmacosmaterial-designmobilemobile-developmentskiawebweb-frameworkwindows
2.5 GiB
Languages
Dart
75%
C++
16.5%
Objective-C++
2.9%
Java
2.8%
Objective-C
0.7%
Other
1.9%