Make destructiveRed a CupertinoDynamicColor (#141364)

`destructiveRed` is an alias for `systemRed`, but, in the definition, the precise type information is lost.

This PR gives `destructiveRed` the type `CupertinoDynamicColor` (and not the superclass `Color`) like all the other colors defined in this file.
This commit is contained in:
Simon Friis Vindum 2024-02-06 22:26:52 +01:00 committed by GitHub
parent a069e62e8a
commit 2911bfb84c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,7 +110,7 @@ abstract final class CupertinoColors {
/// or the foreground red theme in various native apps such as HealthKit.
///
/// This is SystemRed in the iOS palette.
static const Color destructiveRed = systemRed;
static const CupertinoDynamicColor destructiveRed = systemRed;
/// A blue color that can adapt to the given [BuildContext].
///