mirror of
https://github.com/flutter/flutter
synced 2024-09-13 05:11:45 +00:00
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:
parent
a069e62e8a
commit
2911bfb84c
|
@ -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].
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue